Lesson 3 of 50
cssBasic Selectors
10 mins
Course progress6%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 3 of 50
css10 mins
Keep these ideas in mind as you work through the lesson.
Selectors let you pick elements.
| Selector | Meaning |
|---|---|
* | All elements |
p | All <p> elements |
.class | Elements with class="class" |
#id | Element with id="id" |
element, element2 | Grouped selectors |
h1, h2 { color:#333; }
.button { background:#0066cc; color:#fff; }