CSS Selectors
Selectors choose which elements a rule applies to.
| Selector | Example | Selects |
|---|---|---|
| Element | p | all paragraphs |
| Class | .note | elements with class="note" |
| ID | #main | the element with id="main" |
Examplehtml
Quick check
Which selector targets class="note"?
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.