CSS selectors are used to "find" (or select) the HTML elements you want to style.
| Selector | Example | Description |
|---|---|---|
| Element | p | All <p> elements |
| Id | #myId | Element with id="myId" |
| Class | .myClass | All elements with class="myClass" |
| Universal | * | All elements |
| Grouping | h1, h2, p | All h1, h2, and p elements |
Edit the code below and click Run to see the result live.