Skip to main content

Practice · 1 of 3

Element, Class, and ID Selectors

CHALLENGE
Difficulty: beginner+25 XP

Style the page three ways at once: - Every p gets color: dimgray. - Every element with class note gets background-color: lightyellow. - The element with id tagline gets font-style: italic. Rules: - One rule per target — no combined selectors.

Back to lesson: Practice: Selectors Under Command