Sectioning Roots and Outlines
You'll learn how HTML semantic elements automatically organize your page into a hierarchical structure called an outline.
What Is a Document Outline?
When you use semantic sectioning elements like <article>, <section>, <nav>, and <aside>, browsers create an invisible outline of your page—like a table of contents. This outline helps screen readers navigate and gives structure to your content, similar to how a book has chapters and subchapters.
Sectioning Roots: Special Containers
Certain elements are called sectioning roots because they create their own independent outline contexts. These include:
<blockquote><body>(the main document root)<details><fieldset><figure><td>
Think of sectioning roots as mini-documents within your page. Headings inside a <figure>, for example, don't affect the main document's outline—they only organize content within that figure.
How Outlines Form
Each semantic sectioning element (<article>, <section>, <nav>, <aside>) starts a new section in the outline. The heading elements (<h1> through <h6>) label these sections. When you nest an <article> inside another <article>, you're creating a subsection—just like nesting folders on your computer.
Why This Matters
You might not see the outline visually, but assistive technologies use it to help users jump between sections. A well-structured outline makes your content more accessible and logically organized, even if the visual design doesn't show these boundaries clearly.
Key Takeaway: Semantic HTML elements automatically build an invisible document outline that helps assistive technologies navigate your content, with sectioning roots creating independent outline contexts.