H-tags guide: How to use H1, H2 and H3 correctly for SEO
H-tags are HTML headings from H1 to H6. Use one H1 that says what the page is about, nest H2 and H3 under it like a table of contents, and write them for the reader rather than for Google. Headings help visitors and screen readers first and foremost. Google itself says the order does not matter for search.
What are H-tags?
H-tags (heading tags) are the HTML elements that mark headings. They range from H1 (top level) to H6 (lowest) and give the page a hierarchical structure.
<h1>Main heading (page title)</h1><h2>Section</h2><h3>Sub-section</h3><h4>Detail</h4>Think of them as a table of contents in a book:
- H1 is the book title
- H2 are the chapters
- H3 are sections within a chapter
- H4 are sub-sections
What do H-tags do for SEO?
Google uses them less than many people think
Google's own SEO guide says that headings in semantic order are fantastic for screen readers, but that from a Google Search perspective it doesn't matter if they are used out of order. There is also no magical, ideal number of headings on a page. If you think there are too many, there probably are (source: developers.google.com/search/docs/fundamentals/seo-starter-guide, read 22/11-2026).
So headings are not a lever you can pull to rank higher. They work indirectly: a page that is easy to skim makes more people stay and find the answer.
Readers skim
People skim content online. Clear headings make it easy to find the relevant section. Write headings that make sense on their own and answer what the reader is looking for.
Accessibility
Screen readers use headings to jump around the page. Here the hierarchy matters: W3C's accessibility guidance recommends nesting headings by level and avoiding skipped levels (source: w3.org/WAI/tutorials/page-structure/headings, read 22/11-2026).
The rules for H-tags
H1: The page title
- Use one H1 per page. The HTML standard allows several, but MDN calls it not a best practice and recommends a single H1 that describes the page, like the
<title>(source: developer.mozilla.org, "Heading elements", read 22/11-2026) - H1 should describe the page's main topic
- Use your main keyword where it reads naturally
- H1 should be the first heading element on the page
H2: Main sections
- Divide the content into logical sections
- You can have several H2s on one page
- Each H2 should introduce a new topic or aspect
H3: Sub-sections
- Break an H2 section down further
- Suited to steps, lists or details
H4-H6: Details
- Used less often, but useful in long content
- Keep the hierarchy and don't skip levels
Common H-tag mistakes
Mistake 1: Multiple H1 tags
Many themes and page builders add extra H1 tags without you knowing, for example in the logo, sidebar or footer.
How to check: Right-click your page, choose "View page source" and search for <h1.
Mistake 2: Skipping levels
Going straight from H1 to H3 gives an unclear structure for people who navigate with a screen reader. Google says it doesn't matter for search, but doing it right costs nothing.
- ❌ H1 → H3 → H4
- ✅ H1 → H2 → H3 → H4
Mistake 3: Using H-tags for styling
H-tags are for structure, not for making text bigger or bolder. Use CSS for the look.
Mistake 4: Keywords stuffed into headings
Google's spam policy calls it keyword stuffing when the same words are repeated over and over, and it is against the policy (source: developers.google.com/search/docs/fundamentals/seo-starter-guide, read 22/11-2026). It is also tiring to read.
- ❌
<h2>SEO keywords SEO optimization keyword optimization Google SEO</h2> - ✅
<h2>How to find the right keywords</h2>
Mistake 5: Generic headings
"More info" and "Read more" don't tell the reader what the section is about.
- ❌
<h2>More information</h2> - ✅
<h2>What does a website cost?</h2>
H-tags in WordPress
In the Gutenberg editor
The block editor makes it easy to keep track of the levels:
- Add a "Heading" block
- Choose the level (H2, H3, H4) in the block toolbar
- The page title is normally the H1 automatically, so don't use an H1 in the content itself
On Windows, Gutenberg also has a shortcut: Shift + Alt + 1-6 sets the selected heading to that level, and Shift + Alt + 0 turns it into a normal paragraph (source: the Gutenberg repository's shortcut list, read 22/11-2026). More in the Gutenberg guide.
In page builders (Elementor, Bricks, Divi)
Page builders give full control over H-tags, which also makes mistakes easy:
- Check that only the page title is an H1
- Avoid H-tags in footers and sidebars
- Use the heading widget for headings, not to make text look big
Read more about page builders like Bricks and Elementor.
With SEO plugins
Many SEO plugins have a content analysis that also looks at headings. Use it as a quick check, but read the page source if you want to be sure. See the comparison of Yoast and Rank Math.
How to check your H-tags
1. Browser developer tools
Right-click, choose "Inspect element" and search for h1, h2 and h3 in the HTML.
2. Content analysis in your SEO plugin
Use the plugin's analysis to see whether the page has an H1 and how the rest is structured.
3. Free tools
Screaming Frog SEO Spider is free up to 500 URLs (source: screamingfrog.co.uk, read 22/11-2026). The Chrome extension HeadingsMap shows the headings as a tree.
H-tags checklist
- ☐ Only one H1 per page
- ☐ H1 describes the main topic and contains the main keyword
- ☐ H2s divide the content logically
- ☐ The hierarchy is in order, with no skipped levels
- ☐ No H-tags used only for styling
- ☐ No H-tags in footer or sidebar
- ☐ Headings are descriptive, not generic
- ☐ Keywords appear naturally, not stuffed
Conclusion
H-tags are simple to understand but take discipline. Build a clear structure that helps the reader and the screen reader, and don't expect headings alone to lift a page in Google. They are one part of a bigger picture, which I go through on the page about SEO optimization.
Start by checking your most important pages for the common mistakes. It doesn't take long.
