CSS/Selectors

From W3C Wiki
< CSS

NOTE: THE MATERIAL ON THIS WIKI PAGE IS BEING MIGRATED ONTO THE WEB EDUCATION COMMUNITY GROUP'S DEDICATED WIKI PAGE, AT http://www.w3.org/community/webed/wiki/CSS/Selectors. ITEMS MARKED WITH (MOVED) HAVE ALREADY BEEN MOVED.

Type Selector

Universal Selector

  • (MOVED) *

Attribute Selector

Class Selector

ID Selector

Pseudo-classes

Dynamic pseudo-classes

The target pseudo-class

The language pseudo-class

The UI element states pseudo-classes

Structural pseudo-classes

The negation pseudo-class

Pseudo-elements

Combinators

Descendant combinator

Child combinator

Adjacent sibling combinator

General sibling combinator


See also