Question
Heading Hierarchy: H1-H6 Usage Guide
Short answer
Use headings to show the structure of the page: one clear main heading for the page topic, H2s for its main sections, H3s for subsections inside an H2, and deeper levels only when the content really has them. Do this for readers and assistive technology first. Google's own guidance is that heading order doesn't matter for Search: "from Google Search perspective, it doesn't matter if you're using them out of order", and "There's also no magical, ideal amount of headings a given page should have."
Sources
Ask next
What Headings Do, and for Whom
Headings matter first to people. The W3C’s headings tutorial explains that “Headings communicate the organization of the content on the page. Web browsers, plug-ins, and assistive technologies can use them to provide in-page navigation.” Screen reader users can move from heading to heading, and sighted readers scan them to decide where to stop.
For Search, Google’s SEO Starter Guide treats headings as part of readable content, advising you to “Break up long content into paragraphs and sections, and provide headings to help users navigate your pages”, and then separates that from ranking mechanics in its list of things not to worry about:
Having your headings in semantic order is fantastic for screen readers, but from Google Search perspective, it doesn’t matter if you’re using them out of order. The web in general is not valid HTML, so Google Search can rarely depend on semantic meanings hidden in the HTML specification.
There is one Search effect worth knowing. The same guide says Google uses several sources to generate the title link in results, “including the words inside the <title> element (also called the title text) and other headings on the page”. A main heading that clearly names the page topic supports the title link Google shows.
The Ranks and How to Nest Them
The W3C states the rule plainly: “Nest headings by their rank (or level). The most important heading has the rank 1 (<h1>), the least important heading rank 6 (<h6>). Headings with an equal or higher rank start a new section, headings with a lower rank start new subsections that are part of the higher ranked section.”
| Level | Role | When it appears |
|---|---|---|
| H1 | The page's main topic | Once, for the page title |
| H2 | Major sections of that topic | As many as the content has sections |
| H3 | Subsections inside an H2 | Only when an H2 has distinct parts |
| H4 to H6 | Deeper levels | Only for content with that much structure, such as long reference documents |
On skipping levels, the W3C is specific in both directions: “Skipping heading ranks can be confusing and should be avoided where possible: Make sure that a <h2> is not followed directly by an <h4>, for example. It is ok to skip ranks when closing subsections, for instance, a <h2> beginning a new section, can follow an <h4> as it closes the previous section.”
One H1 or Several?
Google’s guidance doesn’t set a heading count, and it says heading order doesn’t matter for Search, so multiple H1 elements are not a Google problem in themselves. The case for a single H1 is about readers: one main heading tells a screen reader user and a scanning reader what the page is about.
A practical default:
- Articles, service pages, product pages: one H1, matching the page’s main topic.
- Templates with repeated components, such as a homepage with product cards: give the page one H1 and use lower levels for the cards, rather than an H1 per card.
- Site-wide elements, such as the logo, sidebar and footer: no H1. The W3C adds that in fixed page sections like sidebars “the heading ranks should not change depending on the ranks in the content area”, so keep those consistent across pages.
Writing the Headings Themselves
Each heading should tell the reader what the section answers. “More Information” says nothing; “Installation requirements for older homes” says what follows. Write for the reader first: if a heading naturally includes the words people search with because they describe the section, keep them; if forcing them in makes the heading less clear, leave them out.
Two tests help:
- Read the headings alone. Without the body text, do they tell a coherent story about the page? If yes, the structure works.
- Check that each section answers its heading. A heading that promises more than its section delivers misleads readers the same way an inflated title does.
Question headings suit sections that answer a question the reader would ask in those words. For other sections, a plain statement of the topic can be clearer than a question.
Heading Mistakes and Why Each Matters
| Mistake | Problem it causes |
|---|---|
| Headings used for styling, such as a large tagline marked H2 | Assistive technology announces a section that isn't one |
| Skipping from H2 to H4 inside a section | The W3C says skipped ranks "can be confusing" |
| Logo or site name as the H1 on every page | The page's actual topic loses its main heading |
| A heading for every paragraph | Nothing stands out when everything is a heading |
| Empty heading tags left by a theme | Heading navigation can land on a heading with no text |
| Visual size that contradicts the level (an H3 styled larger than the H2) | Sighted readers and assistive technology get different structures |
Fix these because they affect readers. Google’s guidance means you should not expect a ranking change from reordering headings alone.
Auditing a Site
- One page: open the browser’s developer tools or an accessibility extension that shows the heading outline, and read it top to bottom.
- Templates: headings can come from the theme, not the writer. Check a sample of each template’s HTML for headings in headers, sidebars, widgets and footers, and fix them once in the template.
- Page builders: a “large text” block may output a heading tag. Check the HTML, not just the visual editor.
- Whole site: desktop and cloud crawlers can list pages with no H1, several H1s or empty headings; use that list to find template problems, then judge each page by its readers.
Worked Examples
A long guide:
- H1: the guide’s topic
- H2: each major question the guide answers
- H3: steps or options within one of those questions, where they exist
A category page:
- H1: the category name
- H2: groups the page actually presents, such as subcategories or featured collections
- Filter labels and product names: not headings unless they introduce a section
Not every H2 needs H3s under it. The outline should follow the content, not a template that forces the same depth everywhere.
Related decisions sit in neighboring guides: how headings feed a table of contents in table of contents implementation, how sections can be picked for snippets in featured snippets, and where headings fit among accessibility practices in SEO and web accessibility.
When the same heading problem shows up on many pages, look for it in the template before editing pages one by one; theme headers, sidebars and widgets are where headings no writer added come from.
Link profile
Links to 3 guides
Linked from 8 guides
- Table of Contents: Implementation and SEO Benefits
- SEO Copywriting: Writing for Search Engines and Humans
- SEO and Web Accessibility: Overlapping Best Practices
- Pillar Pages and Topic Clusters: Building Topical Authority
- On-Page SEO Checklist: Complete Optimization Guide
- Long-Tail Keywords: Strategy, Research, and Implementation
- Cornerstone Content Strategy
- Content Length: Myths and Realities
Cites 2 sources
- headings tutorial w3.org
- SEO Starter Guide developers.google.com