Mastering CSS

Chapter 1: Selectors

A CSS selector is the part of a CSS rule that describes what elements in a document the rule will match.

1.1 Pseudo-classes

CSS pseudo-classes enable selecting elements based on information that lies outside of the document tree.