The museum card has three kinds of content: ordinary notes, a caution note, and one specimen title. The completed rules target each with a different selector.
A specimen card where the two-line paragraph has comfortable line spacing, the caution note has a highlight, and the title has a distinct color.
p { line-height: 1.6; }
.note { background-color: #fff4cc; }
#specimen-title { color: #7a1fa2; }
Run the completed page. Then change #specimen-title from #7a1fa2 to another color in style.css; only the title should change. Restore the original color before continuing.
p selects both paragraphs, .note selects only the paragraph with that class, and #specimen-title selects the unique heading. The demo is already complete.
Continue to Exercise: Target Exhibit Details and reproduce the idea from a starter file.
This completed example is for reading and previewing before the exercise.