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

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

3/12