Three rules style the same museum note. The browser resolves their conflicting color values with selector specificity.
One note with three matching rules; the ID rule controls its final green color.
p { color: gray; }
.highlight { color: orange; }
#intro { color: green; }
Run the completed page. Change .highlight to blue; the note stays green because #intro is more specific. Then change #intro and observe the final color change. Restore the original values before continuing.
All three selectors match the same paragraph. #intro is an ID selector, which outranks the class and element selectors here; its color: green wins. This demo is already complete.
Continue to Exercise: Resolve Specificity and reproduce the idea from a starter file.
This completed example is for reading and previewing before the exercise.