11. Primary Structure and Sections

This chapter is a counterpart to Chapter 2 because it describes related elements unique to HTML5. If you’re writing X/HTML documents, then this chapter isn’t relevant. But, if you’re writing HTML5, then it combines with Chapter 2 to detail all the primary structural and sectional elements at your disposal.

In X/HTML, the div element is your main device to contain chunks of content. As you know, div, although great as a container, has absolutely no semantic meaning. The seven elements in this chapter are containers that do have meaning. div doesn’t go away in HTML5; you just won’t use it as often.

Furthermore, a few of these elements directly impact a document’s outline and change the way you use h1h6 headings ...

Get The HTML Pocket Guide 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.