Type Selector
Another selector is called the type selector. This selector selects every HTML element of a specific type. Example:
p {
color: blue;
}
This code selects all paragraphs in HTML (elements p
) and changes their color to blue.
Instructions
Create a rule that sets the color of all h1
elements to blue.
Start programming for free
3/12