Classes

Look at the index.html file. You can see there are several HTML5 <section> tags throughout the page: one in the initial section, one in the secondary section, and one in the alternate section, making three all together. One of those is shown below:

Inside the second <section>, there are three div tags, each housing an img, h2, p, and an a tag. So there is nothing fancy about this HTML. The last section looks a lot like the first section; it just has h1 and h2 elements and a couple of paragraphs. Here's the dilemma, though: we want h1 at the bottom of the page to be different from the site's main h1 element. The solution is to add a ...

Get Mastering CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.