On this page
  1. css/selectors
  2. Selector Groups

css/selectors

Prev: css | Up: css | Next: properties
Rel: Cascade, Specificity & Inheritance, Global Attributes, Nodes & Elements
Ref: MDN Web Docs — CSS Selectors
Tags: #public #web #css #selectors #index


Selector Groups

  1. Basic & Combinator Selectors — Type, .class, #id, [attr], universal *, and combinators ( , >, +, ~).
  2. Pseudo-Classes — Interactive (:hover, :focus-visible), structural (:nth-child()), functional (:is(), :where(), :not(), :has()), and form state (:user-invalid).
  3. Pseudo-Elements — ::before, ::after, ::first-line, ::placeholder, ::backdrop, ::part(), and ::slotted().

Linked from

Related notes