Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

CSS Selector

CSS selector is a pattern rule that matches style rules to a specific element (or elements). The selector begins a rule set and precedes definitions of how the element(s) should look.

Learn more

General knowledge

Technical reference

Selectors Level 3

Document Tags and Contributors

 Contributors to this page: Andrew_Pfeiffer, hbloomer, klez, teoli, ChrisL
 Last updated by: Andrew_Pfeiffer,