Header Tags (H1 to H6): How to Structure Content for SEO

Header tags are the HTML elements H1 to H6 that mark the headings on a page, from the main title (H1) down to minor sub-sections. They organise content for readers, screen readers and search engines, and they are a basic but powerful part of on-page SEO.

How the hierarchy works

H1: How to Train for a Half Marathon
  H2: How long does it take to train?
  H2: A 12-week training plan
    H3: Weeks 1–4: building a base
    H3: Weeks 5–8: adding speed
  H2: What to eat before race day

The H1 states the topic. H2s split it into main sections. H3s break those sections down. H4 to H6 are rarely needed on web pages.

Do header tags affect rankings?

Headings help Google understand what each section is about and which passages answer which questions. Google can rank individual passages, so a clear heading above a clear answer improves your chances of ranking for long-tail questions, winning featured snippets and being quoted in AI answers.

Best practices

  1. One H1 per page that describes the topic and includes the main keyword naturally.
  2. Logical order: do not jump from H2 to H4 for styling reasons.
  3. Question headings where they fit, written how people search (“How much does a loft conversion cost?”).
  4. Descriptive, not clever: “Pricing” beats “Show me the money”.
  5. Use variants and related terms across H2s rather than repeating the exact keyword.
  6. Keep links out of headings. Put them in the paragraph below.

Is it bad to have multiple H1s?

Google says multiple H1s will not break anything, and HTML5 allows them. Still, one H1 is cleaner, easier to audit and better for accessibility. Watch for themes that wrap the logo or site name in an H1 on every page.

Headings and accessibility

Screen-reader users often jump from heading to heading to scan a page. A proper hierarchy makes your content usable for them, and accessibility improvements often overlap with SEO, as with alt text.

Common mistakes

  • Using heading tags for styling, such as making a phone number an H2.
  • Marking up image captions, badges or footer text as headings.
  • Empty H1s or H1s hidden by CSS.
  • Headings stuffed with keywords.
  • Long paragraphs with no subheadings at all.

How to check your headings

Browser extensions such as Detailed SEO or HeadingsMap show the outline of any page. Site crawlers report missing, duplicate and multiple H1s across the whole site.

Frequently asked questions

Should the H1 match the title tag?

They should cover the same topic. Exact matching is optional; see our title tag guide.

How many H2s should a page have?

As many as the content needs. Long guides often have eight to fifteen.

Related terms

See SEO content writing, search intent and the SEO encyclopedia.

Mr. SEO is the webmaster at SEO TT - SEO tips and tricks, a publication about all things SEO related.