Header Tags for SEO: H1-H6 Best Practices in 2026
Lawrence Hitches Written by Lawrence Hitches | AI SEO Consultant | May 14, 2026 | 11 min read

Header tags (H1 through H6) are HTML elements that organise a page into a hierarchical outline. In 2026, they are the primary extraction signal AI search engines use to decide what your page is about. Used correctly, they help human readers scan content and help AI engines like ChatGPT, Perplexity, Claude, and Google AI Overviews understand what to cite. Used badly (the most common modern mistake is leaving the H1 off entirely on Shopify homepages and category pages), they tank organic visibility. This guide covers what works in 2026, sourced from auditing client sites at StudioHawk.

What Are Header Tags?

Header tags are the HTML elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>. They define the headings and subheadings on a web page in descending order of importance. <h1> is the most important (the page title). <h6> is the least important (rarely used).

Each header tag does three things at once:

  • Organises content for human readers, allowing them to scan the page and jump to the section they need
  • Tells search engine crawlers what each section of the page is about, so the page can rank for the right queries
  • Provides AI engines with the structural anchors they need to decide which sentences to lift into AI Overviews, ChatGPT answers, Perplexity citations, and Claude responses

The hierarchy matters. Crawlers and AI engines read the H1 as the page topic, the H2s as the sub-questions the page answers, and H3-H6 as supporting structure underneath. Get the hierarchy wrong and the page either ranks for the wrong query or fails to get cited at all.

H1 to H6 Quick Reference Table

TagRoleHow many per pageSEO weight
H1Page title and primary topic anchorOneHighest
H2Main section headings under the H15-10 typicalHigh
H3Sub-sections under an H2As neededMedium
H4Sub-sections under an H3RarelyLow
H5Deep nesting onlyAlmost neverNegligible
H6Almost never usedAlmost neverNegligible

Most pages should use H1, H2, and H3 only. H4 is the cap for typical content. H5 and H6 exist in the spec but if you find yourself reaching for them, the page probably needs to be restructured into multiple smaller pages.

The Shopify H1 Mistake You're Probably Making

A lot of new Shopify builds forgo the H1 entirely on their homepage and key category pages. That is the most common heading mistake we see auditing client sites at StudioHawk in 2026, and almost no SEO content addresses it.

Why it happens

  • Modern Shopify themes lean hard on visual hierarchy. Designers style paragraph text or <div> elements to look like an H1 (large, bold, centred) but never tag them as <h1>.
  • Many Shopify hero sections use image-based banners with the brand name baked into the image rather than as live text in an H1.
  • Category pages often inherit the collection name as a small heading (or no heading) because the theme designer assumed the visual product grid would carry the page identity.

How to spot it (10-second audit)

  • Open the page, right-click, Inspect, search the DOM for <h1>. If there is none, you have the problem.
  • Or use the Detailed SEO Extension (linked further down). It shows you the heading structure in one click.

Why it matters

  • Without an H1, search engines fall back to the title tag or URL slug to infer page topic. That is a much weaker signal.
  • AI search engines (ChatGPT, Perplexity, AI Overviews) use H1 as the strongest single extraction signal for "what is this page about?". No H1 = much lower citation likelihood.
  • For ecommerce category pages, the H1 is the only on-page signal the user has that they have landed on the right collection.

How to fix on Shopify specifically

  • Homepage: add an H1 in the hero section, even if it is visually hidden via CSS. The screen-reader-only pattern (.sr-only) keeps it accessible to search engines and assistive tech without disrupting the design.
  • Category pages: ensure the collection name is wrapped in <h1> in the theme's collection.liquid or main-collection.liquid template.
  • Product pages: the product title should be <h1>. Most themes get this right, but check.

This single fix has consistently moved category pages from page 2 to page 1 across our ecommerce client base. It is the cheapest SEO win on most Shopify sites.

Multiple H1s in 2026: What I Actually Tell Clients

Most SEO articles still tell you "only one H1 per page". Technically that is outdated. The HTML5 spec allows multiple H1s in <section> and <article> contexts. So which is right?

The practitioner answer:

Tend to avoid it. Think logically about how a crawler would understand the page.

Even though the spec permits multiple H1s, search engines still rely on heading hierarchy to figure out what your page is about. When you have one H1, the crawler has unambiguous signal: "this is the page topic." When you have three H1s, the crawler has to guess, and guesses get it wrong more often than not.

The brand-voice and AI-extraction logic from the next section also applies here. AI engines treat H1 as the primary topic anchor. Multiple H1s dilute that anchor.

Practical rules

  • Use one H1 per page. Always. Even if your CMS technically allows more.
  • If a page genuinely has two equal-weight topics, that is usually a sign it should be two pages.
  • If you have inherited a template with multiple H1s, fix it. Do not argue the spec.
  • Single exception: extremely long-form documentation or news index pages where each section is genuinely a separate article. Even then, prefer <h2> for section anchors and reserve <h1> for the page title.

SEO is rarely about what is "technically allowed". It is about what gives crawlers and AI engines the cleanest signal. One H1 wins on that metric every time.

Writing Headings for AI Search Citation (Without Killing Your Brand Voice)

A note on "writing for AI": Google's AI optimization guide says you "don't need to write in a specific way just for generative AI search." Agreed. This was never about writing FOR machines. It is about writing well, then recognising that a clear, well-structured page is easier to ingest whether the reader is a human scanning it or an LLM extracting from it. Good content standards serve both.

Headings now do two jobs in 2026. They organise the page for human scanning AND they are the primary extraction signal AI search engines use to decide what your page is about. The mistake is treating it as either or. The right answer is a mix of both. Your headings need to communicate your brand effectively while still being structured for AI extraction.

How AI engines use headings

  • ChatGPT, Perplexity, Google AI Overviews, and Claude all parse H1 → H2 → H3 hierarchy as their primary structural signal
  • The H1 is read as the page topic. H2s are read as the sub-questions the page answers
  • Direct-answer H2s ("What is X?", "How do I Y?") get cited more often because they map cleanly to user queries

How to keep brand voice while writing for AI extraction

  • The H1 carries brand voice. Make it interesting, on-brand, and memorable.
  • The H2s carry the questions. These should be more direct, query-shaped, optimised for AI extraction. Think of them as the table of contents an AI is going to summarise from.
  • The first sentence under each H2 is the answer. Write a 50-150 word standalone answer to the H2's implicit question. AI engines lift this directly into citations.

Example contrast

  • Pure brand voice (low AI extraction): "Why this matters more than you think"
  • Pure AI extraction (no brand voice): "What is the impact of X on Y in 2026?"
  • Balanced: "Why X actually matters for Y in 2026 (and how to measure it)". Communicates intent + voice + scannable + AI-extractable.

Do not optimise headings for AI at the expense of personality. The AI extraction layer is real, but pages with clear voice rank higher overall because users engage with them more. Both jobs, one heading.

Header Tags vs the <header> Element (They Are Different)

Heading tags (<h1> through <h6>) and the <header> element get confused often, but they do completely different jobs.

FeatureHeader tags (h1 to h6)<header> element
PurposeDefine the hierarchy and structure of contentDefines the header section of a webpage (above the fold)
FunctionActs like chapter titles in a book, guiding readers through contentFunctions like a book cover, containing introductory elements like logos, navigation, or titles
HierarchyIndicates the importance of content from major headings to subheadingsDoes not indicate content hierarchy
UsageUsed multiple times on a page to organise sectionsTypically used once per page to define the top section
ContentText-based, descriptive of the content that followsCan include a mix of text, images, and links for site navigation or branding

Heading tags are for titles and subheadings. The <header> element is the structural container for the top section of a page. Two different jobs, easy to confuse.

What Google Says About Header Tags (Official Guidance)

Google's official documentation on header tags lives in the SEO Starter Guide and the Search Central Title Link best practices. The relevant guidance:

  • Use headings to convey meaning, not styling. Reserve <h1> through <h6> for actual heading hierarchy. If you only need bigger text, use CSS instead.
  • Heading tags help Google understand the structure of your page. They do not have to be at the very top, but they should reflect the logical organisation of the content.
  • One H1 per page is recommended as a practical default, even though the HTML5 spec permits multiple H1s in section contexts.
  • Avoid stuffing keywords into headings. Google recognises keyword stuffing in headings the same way it recognises it in body text. Write naturally.
  • Headings should be useful for users, not just for ranking. If the heading would not help a human reader understand the section below it, rewrite it.

Google's stance on header tags has been consistent for years. The 2026 update is that AI engines now use the same heading hierarchy as their primary extraction signal, which makes following Google's guidance even more important than it was when only Googlebot was reading it.

How to Run a Header Tag Audit (Free Chrome Extension)

Auditing the heading structure on any page takes less than 30 seconds with the right tool.

  1. Install the Detailed SEO Extension for Chrome (free)
  2. Open the page you want to audit
  3. Click the extension icon, then click "Headers"
  4. You will see the full heading hierarchy of the page in a tree view

What to look for in the audit:

  • Is there exactly one H1? Zero H1s = the Shopify mistake. Two or more H1s = ambiguity for crawlers and AI engines.
  • Does the H1 reflect the page's primary keyword and topic? Or is it a generic page title that does not describe what the page is about?
  • Are H2s direct, query-shaped, and answerable? Or are they vague brand-voice headings that do not map to a user question?
  • Is the hierarchy clean (H1 → H2 → H3) or are there skips (H1 → H3 with no H2)? Skipping levels is fine for assistive tech but cleaner hierarchy helps AI engines parse the page faster.
  • Are there orphan H4-H6 tags? If you are using H4 without an H3 parent, restructure.

Most heading-tag audits surface the same 3-4 issues across most sites: missing H1, multiple H1s, vague H2s, and skipped levels. Fix those and you have done 80% of the work.

FAQ: Common Header Tag Questions

The questions I get asked most often about header tags, answered in the order they tend to come up.

Are H tags still important for SEO in 2026?

Yes, more than ever. The 2026 difference is that header tags now feed two systems instead of one. Google still uses heading hierarchy for traditional ranking, AND AI search engines (ChatGPT, Perplexity, Claude, Google AI Overviews, Microsoft Copilot) use heading hierarchy as the primary signal for what to cite. A page with strong heading structure now wins both organic ranking AND AI citation. A page with weak heading structure loses both.

What is the SEO difference between H tags and heading tags?

None. They are the same thing. "H tags" is shorthand for "heading tags" (the <h1> through <h6> HTML elements). Some practitioners use one phrase, some the other. Same elements, same SEO behaviour, same effect on AI search citation.

How many H tags should a page have?

Exactly one H1. Five to ten H2s for a typical 1,500-3,000 word article. H3s as needed under H2s where the section benefits from sub-structure. H4-H6 only when the content depth genuinely requires them, which is rare. A typical practitioner article has roughly: 1 H1, 6-8 H2s, 8-15 H3s scattered under the H2s, and zero H4-H6.

Do header tags help with featured snippets and AI Overviews?

Yes. Featured snippets pull heavily from H2s phrased as direct questions ("What is X?", "How do I Y?") followed by a clean 40-60 word answer in the first paragraph below. AI Overviews use the same pattern. The format is: question-shaped H2, then a snippet-lead paragraph that directly answers the question in self-contained prose. Both Google's featured snippet algorithm and AI Overview generators look for this exact pattern.

Should header tags include exact-match keywords?

Naturally, yes. Forced, no. The H1 should clearly contain the page's primary keyword (or a close natural variant). H2s should contain the sub-topic keywords for each section. But every word in the H2 should sound like something a human would say, not a keyword stuffed into a heading shape. If the heading reads as awkward English, rewrite it.

What happens if I skip heading levels (H1 to H3 with no H2)?

Mechanically, nothing breaks. Google handles skipped levels fine. Assistive technology can also navigate skipped levels. But cleaner hierarchy (H1 → H2 → H3) helps AI engines parse the page faster and helps human readers scan it. The cost of fixing it is small. The benefit is small. Worth doing on new builds, not worth a rewrite on existing pages.

What is the maximum length for an H1?

No hard limit, but the practical sweet spot is 30-70 characters. Long enough to communicate the page topic clearly. Short enough that it does not wrap into multiple visual lines on most viewports. If your H1 is regularly hitting 80+ characters, it probably contains too much. Move some of it to a subtitle or excerpt.

Key Takeaways

  • Header tags (H1 through H6) define the structural hierarchy of a page. They are the primary extraction signal AI engines use to decide what your page is about in 2026.
  • One H1 per page, always, even if your CMS allows more.
  • H1 carries brand voice. H2s carry the questions. The first paragraph under each H2 is the answer AI engines lift into citations.
  • The most common 2026 mistake is missing H1 on Shopify homepages and category pages. Cheapest SEO fix on most ecommerce sites.
  • Audit any page in 30 seconds with the Detailed SEO Extension. Look for missing H1s, multiple H1s, vague H2s, and skipped levels.
  • "H tags" and "heading tags" mean the same thing. Same HTML elements (<h1> through <h6>), same SEO behaviour.

Sources & Further Reading

Soaring Above Search

Weekly AI search insights from the front line. One newsletter. Six sections. Everything that actually moved this week, with a practitioner's take.

Lawrence Hitches
Lawrence Hitches AI SEO Consultant, Melbourne

Chief of Staff at StudioHawk, Australia's largest dedicated SEO agency. Specialising in AI search visibility, technical SEO, and organic growth strategy. Leading a team of 120+ across Melbourne, Sydney, London, and the US. Book a free consultation →