CSS Selectors
This reference section describes all CSS selectors in the CSS2.1 specification, plus a small selection of widely supported selectors from the proposed CSS3 specification. They are organized as follows:
- Basic selectors: the universal selector, type (tag) selectors, classes, IDs, and grouping selectors
- Pseudo-classes and pseudo-elements, including those used for styling links
- Combining selectors for greater control: descendant, child, and adjacent sibling selectors, plus the general sibling combinator
- Attribute selectors