How semantic HTML wins over div soup
A heading outline β h1, h2, h3, h4, h5, h6 β gives your page a structure that browsers, screen readers, and search engines all understand automatically. No ARIA needed.
Why headings matter
Keyboard users press H in most screen readers to jump through headings. Search engines weight the words in h1 and h2 more heavily. The outline tree is also what Google uses when it generates sitelinks in search results.
Screen readers
A sighted reader skims a page by scrolling. A screen reader user skims by navigating the heading outline. If you flatten everything to h2 or h3, they get a flat list with no way to tell what belongs under what.
Search engines
Google and Bing treat headings as strong ranking signals. Put your most important keywords in h1 and h2, and don't skip levels.
Three simple rules
- One h1 per page β it's the page's main title.
- Don't skip levels β h1 β h3 without h2 is an error.
- Match the outline to the content β don't use headings just for size.
Rule 1: One h1
Multiple h1s used to be valid under HTML5, but modern best practice is one h1 per page. It's the headline β the thing that tells a reader what this page is about.
No skipped levels
Going h1 β h3 skips h2, which tells assistive tech that something is missing. The browser outline algorithm treats this as an error.
Content over style
Pick the heading level that matches meaning, not how big you want the text. Use CSS to resize β don't downgrade a heading to a paragraph just to change its font size.
Tools to check
Chrome extensions
Heading Map and WebAIM WAVE both give you a one-click view of the outline tree for any page.
This page
The outline on the left side of this page is generated live by a small script that walks through all h1βh6, builds a tree, and renders it as an indented list. Try clicking a heading and watching the outline highlight move.
Summary
The heading outline is the single most important accessibility win you can add to any page. It's zero ARIA, zero external tools, and browsers get it for free.
β οΈ Wrong β a second h1 on the same page
This is deliberately here as a bad example. Real pages should have exactly one h1.