On this page
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
- Basic & Combinator Selectors — Type,
.class,#id,[attr], universal*, and combinators (,>,+,~). - Pseudo-Classes — Interactive (
:hover,:focus-visible), structural (:nth-child()), functional (:is(),:where(),:not(),:has()), and form state (:user-invalid). - Pseudo-Elements —
::before,::after,::first-line,::placeholder,::backdrop,::part(), and::slotted().
Linked from
Related notes
- tuts/css Linked here; links to this page; shared tags: #css, #index, #web
- tuts/css/properties Linked here; links to this page; shared tags: #css, #index, #web
- tuts/css/selectors/basic_and_combinator_selectors Linked here; links to this page; shared tags: #css, #selectors, #web
- tuts/css/selectors/pseudo_classes Linked here; links to this page; shared tags: #css, #selectors, #web
- tuts/css/selectors/pseudo_elements Linked here; links to this page; shared tags: #css, #selectors, #web
- tuts/web/dom/nodes_and_elements Linked here; links to this page; shared tags: #web
- tuts/css/tutorials links to this page; shared tags: #css, #index, #web
- tuts/css/tutorials/cascade_specificity_and_inheritance Linked here; shared tags: #css, #web
- tuts/html links to this page; shared tags: #index, #web
- tuts/web/dom links to this page; shared tags: #index, #web