Skip to content

Glossary: CSS Layout and Responsive Design

Selector

Also written: selectors, class selector, id selector

The part of a CSS rule that says which elements it applies to, such as `p`, `.card` (class), `#cart` (id) or `nav a`.

Where the book teaches it

Related terms

SpecificityDeclaration