RadarTrek
Home/Glossary/CSS Selector
HTML & CSS

CSS Selector

The pattern that tells CSS which HTML elements a style rule should apply to.

Reviewed by the RadarTrek editorial team · June 2026

A CSS selector targets the elements you want to style — by tag (p), by class (.card), by id (#hero), or by relationship (.card p targets paragraphs inside any .card). The browser matches every selector against the page and applies the corresponding styles to whatever it finds.

Why it matters

  • Classes are the most reusable and common selector — the same class can style many elements consistently.
  • More specific selectors override more general ones, which is the root of most CSS debugging.
  • Hover and state selectors (like :hover) are how interactivity is styled without JavaScript.

Where to learn this

🎓

Selectors

CSS Fundamentals course

This is the exact lesson that covers this term in depth — with examples, diagrams, and a hands-on exercise.

Related terms

RadarTrek Intel — monthly score updates

We track 40+ tools so you don't have to. Score changes, new tools, and new guides — once a month, no spam.