Heading Hierarchy and Page Outline
What you'll learn: How to structure your page with <h1> through <h6> headings to create a clear document outline that screen readers and assistive technologies can navigate.
The Power of Headings
Think of headings like a table of contents in a book. Each chapter has a main title, and within chapters you might find section titles and subsections. HTML headings work exactly the same way, creating a navigational map of your page that users can "skim" even if they can't see it visually.
How Heading Levels Work
HTML provides six heading levels: <h1> through <h6>. The number indicates importance and nesting level:
<h1>: The main page title (typically one per page)<h2>: Major sections under the main title<h3>: Subsections within an<h2><h4>through<h6>: Further nesting as needed
Screen reader users often navigate by jumping between headings using keyboard shortcuts. If your outline is logical, they can quickly understand your content structure and jump to the section they need.
The Rules
- Don't skip levels — don't jump from
<h2>to<h4>without an<h3>in between - Use only one
<h1>per page for the main topic - Don't choose headings for visual size — use CSS to style them however you want
- Keep the hierarchy nested properly — like outline levels in a document
Example Outline Structure
<h1>Complete Guide to Baking</h1> (Level 1)
<h2>Essential Equipment</h2> (Level 2)
<h3>Mixing Tools</h3> (Level 3)
<h3>Baking Pans</h3> (Level 3)
<h2>Basic Recipes</h2> (Level 2)
<h3>Cookies</h3> (Level 3)
Key Takeaway: Proper heading hierarchy creates a logical document outline that makes your content navigable and understandable for all users, especially those using assistive technologies.