Type Selector
You already know the type selector: you’ve been using it since the previous lesson. It is the name of an element, such as h1 or p, and it selects all elements of that type on the page:
li {
color: purple;
}This rule makes all list items (li) purple, however many there are. When you add another item to the list, it will be purple too, without any extra work.
Instructions
- 1
Create a rule for
h2elements that setscolor: sienna. All three level-two headings will have the same color as the main heading.