Selector
noun
say it: “suh-LEK-ter” /səˈlɛktər/
The part of a CSS rule that picks which elements the rule styles.
What is a selector in CSS?
A selector picks which elements a rule applies to, by tag name, class, id or other traits.
p { } /* every paragraph */
.card { } /* elements with class="card" */
#header { } /* the element with id="header" */
In a sentence
- “The selector .price picks every element with the class price.”
Level: Novice · More CSS terms at this level
Updated