Skip to content
MrKeyword
Technical SEO

Header tags for SEO: how many H1s, how to structure H2 and H3, and how to check a page

Header tags tell a reader what a page is about and how its sections fit together. This guide covers how many H1 tags a page needs, how to structure H2 and H3 headings, what Google actually says about headings and rankings, the common mistakes to fix, and how to check any page's heading outline in a minute.

A page outline showing an H1 with H2 and H3 sections
The short version
  • Use one visible H1 that states the page topic, then H2s for the main sections and H3s under the H2s they belong to.
  • Google says heading order does not affect ranking and there is no ideal number of headings. Headings still help readers scan, help screen readers and give Google a consistent signal for the title link.
  • A second H1 is not a penalty, but it muddies the page outline. Keep one H1 and make the rest H2s.
  • Headings are not styling. If you only make text bigger and bolder, a screen reader and Google see plain paragraph text, not a heading.
  • Check the outline with the free on-page SEO checker or browser DevTools, not by eye.

Use one visible H1 that states the page topic, then H2s for the main sections and H3s under the H2s they belong to. Google says heading order does not affect ranking and there is no ideal number of headings, but headings help readers, accessibility and title links. That is the whole rule. The rest of this guide explains what each heading level is for, how to structure a page, what Google actually says and how to check a page's headings.

If you are working through a full page, this is one item on the on-page SEO checklist. Headings come after the title, description and indexability, and before images, links and schema.

What are header tags (H1-H6)?

Header tags are the HTML elements H1 to H6 that label a page's sections, from the main topic (H1) down to the smallest subsection (H6). They are real tags, <h1> through <h6>, not paragraph text made to look big and bold. The number is the level: H1 is the page topic, H2 is a main section, H3 is a subsection inside an H2, and so on.

The Google SEO Starter Guide describes headings as a way to help visitors and search engines understand the page, and says heading order does not matter to Google Search. Semantic HTML still matters to assistive technology: screen reader users can jump between headings and hear the outline, which only works when real heading tags are used.

How many H1 tags should a page have?

Use one H1 per page. It should state the page's main topic in plain words and match the search intent the page targets. A second H1 is not a ranking penalty, and HTML5 technically allows more than one, but it gives readers and tools two competing page titles. If you need another section heading, use an H2.

Google's title link documentation says Google may use the main visible heading, the <h1>, as the title link, along with the <title>, og:title, prominent text and anchor text. When the H1 and the <title> describe the same page in the same words, Google has a consistent signal. When the H1 is "Welcome" and the title is "Header Tags for SEO", expect Google to choose its own title link.

On a template, the H1 should come from the page's own topic, not be hard-coded to the site name. A blog post, a product page and a category page each need a different H1.

How should H2 and H3 be structured?

Put each main section under an H2 written as the question or topic a reader came for, then put H3s under the H2 whose content they break up. Do not skip from H1 to H3 for styling, and do not use an H2 for a label that belongs inside one section. The outline should read like a table of contents.

A small example outline for this page:

  • H1: Header tags for SEO: how many H1s, how to structure H2 and H3
    • H2: What are header tags (H1-H6)?
      • H3: H1 versus H2 versus H3
      • H3: Why semantic tags matter
    • H2: How many H1 tags should a page have?
      • H3: What happens with two H1s
    • H2: How should H2 and H3 be structured?
    • H2: Do header tags affect rankings?

The nesting is the point: every H3 sits inside the H2 it explains, and every H2 sits inside the page's single H1. Google does not require this order, but people and screen readers rely on it. When you write a new section, ask whether it is a sibling of the current H2 or a detail inside it; that decides between H2 and H3.

Do header tags affect rankings?

Not directly. Google says heading order does not affect ranking and there is no ideal number of headings. That is stated in the SEO Starter Guide. Headings are not a ranking dial you can turn by adding more of them.

They still earn their place. A clear outline helps readers find the answer, helps screen readers navigate, and helps Google understand which part of the page is the main heading, which can shape the title link. Search engines also read the text of headings as part of the page, so a descriptive H2 is useful normal content, not a trick. The honest summary: headings support a good page, but they do not outrank better content.

Common heading mistakes

Most heading problems are small, local fixes. This table lists the ones our checker sees most often and what to do instead.

MistakeWhy it hurtsFix
Styled text used as headingsBold or large text in a <div> or <p> is not a heading, so screen readers and tools cannot build the outlineUse the real <h2>, <h3> tags and style them with CSS
The logo is the H1A site-wide logo heading says the same thing on every page and not what the page is aboutKeep the logo as a link, and make the page's own topic the single H1
Skipped levelsAn H2 followed by an H4 breaks the outline for people who navigate by headingsGo one level at a time: H1, then H2, then H3
An H1 that does not match the titleTwo different topics give Google conflicting signals for the title linkMake the H1 and <title> describe the same page in similar words
Keyword stuffing in headings"Header tags SEO H1 H2 H3 best header tags" reads badly and is against Google's spam policiesWrite the heading as the question or topic a reader would say out loud

How to check a page's headings

Open the page in MrKeyword's free on-page SEO checker, paste the URL and read the headings section. It fetches the live HTML, counts the H1s and H2s and shows the H1-H3 outline, so you can see at a glance whether there is no H1, more than one, or no H2 on a long page. No account is needed.

You can also check by hand in any browser:

  1. Open the page source

    Right-click the page and choose View page source, or press Ctrl+U on Windows or Cmd+Option+U on a Mac.

  2. Find the heading tags

    Press Ctrl+F and search for <h1, then <h2 and <h3. The order you find them in is the order Google and screen readers receive.

  3. Use DevTools for the rendered page

    Right-click a heading and choose Inspect. In the Elements panel, the DOM shows headings added by JavaScript, which the page source may not. Search the Elements panel for <h1 to confirm what the browser actually rendered.

If the page fails one of the other checks while you are there, the on-page SEO checklist covers titles, descriptions, images, links, schema and canonicals in the same order.

What MrKeyword does not do

  • It does not run JavaScript. The on-page SEO checker reads the HTML the server returns. Headings added by scripts appear in DevTools but not in the checker, so use Inspect for those.
  • It does not judge whether a heading is good. It counts H1s and H2s and shows the outline; whether the wording matches what people search is a human call.
  • It does not treat headings as a ranking factor. It flags structural issues such as a missing H1 or a long page with no H2, not an SEO score for the words in them.
  • It cannot see the title link Google will choose. That is decided at search time from the title, H1, anchor text and other signals.

Questions and answers

Header tags for SEO questions

Can a page have two H1 tags?

Technically yes, and it is not a direct ranking penalty, but it is not a good idea. Two H1s give readers, screen readers and Google two competing page titles. Keep one H1 that states the page topic and turn the other headings into H2s.

Should the H1 match the title tag?

They should describe the same page, not necessarily be word-for-word identical. Google may use the main visible heading as the title link, so similar wording gives a consistent signal. When the H1 and title say different things, Google can pick its own title link.

Do H4-H6 matter for SEO?

They matter for structure and accessibility, not as a ranking lever. Use H4 to H6 only when a section genuinely has that many levels; most pages never need them. Google says heading order does not affect ranking and there is no ideal number of headings.

How many headings should a page have?

There is no ideal number. Google says so directly. Add an H2 for each main section a reader needs and an H3 only when a section splits into subsections. A short page may need only an H1 and an H2.

Are headings a Google ranking factor?

Not directly. Google's SEO Starter Guide says heading order does not affect ranking. Headings help readers scan, help screen readers navigate and can influence the title link, but they do not replace relevant content or links.

About this article

Written by the MrKeyword team, who build an SEO workspace on first-party Search Console and Bing data. Outside facts link to their original source below. We update this page when the product or the sources change.

Sources

  1. SEO Starter Guide — Google Search Central, on headings, heading order and keyword stuffing
  2. Influencing your title links in search results — Google Search Central, on where title links come from, including the main visible heading
Keep reading

More on technical SEO, plus the feature and free tool for the same job. All technical SEO guides →

Check the outline before you publish.

MrKeyword's free on-page SEO checker shows the H1-H3 outline and flags a missing H1, extra H1s and long pages without an H2. Free plan for one website, no card; paid plans from $10 a month.