CoreCited
Content & authority

Header tags SEO: how to structure H1 to H6 for readers, Google and AI answers

Header tags SEO without the myths: what H1 to H6 are for, the heading hierarchy rules, what Google says, and when headings should be questions for AI.

AlexFounder & Developer11 min read

Header tags, properly called heading tags, are the <h1> to <h6> elements that title a page and its sections. For header tags SEO the honest summary is short: Google uses headings to understand what each part of a page is about, it does not care whether they are in perfect order, and no heading level carries a published ranking weight. What headings do decide is whether people can skim the page, whether screen reader users can find their way around it, and where a page splits into passages that an AI answer can lift.

This guide covers what each level is for, the hierarchy rules from the HTML standard and the W3C, what Google and Microsoft say about headings, when a heading should be a question, and real outlines from four well-known sites. To see any page’s outline the same way, paste it into the free heading checker.

Key takeaways
1Google says it uses headings to understand content, and that the order of headings doesn't matter to Google Search. Keywords in headings are not a ranking switch.
2The HTML standard now says a heading may be at most one level deeper than the one before it. Skipping from H2 to H4 is non-conforming.
371.6% of screen reader users in WebAIM's survey navigate by headings first on a long page. Hierarchy is for them.
4Microsoft says headings mark where one idea ends and another begins for AI. Google says you don't need to chunk pages for its AI features.
5Use one H1 for the subject, H2s for sections, H3s inside them, and turn headings into questions only where a section answers one.
71.6%
of screen reader users navigate by headings first to find information on a long page
WebAIM, Feb 2024
88.8%
find heading levels very or somewhat useful
WebAIM, Feb 2024
6
heading levels in HTML, from h1 to h6
WHATWG
+1
level deeper than the previous heading is the most the HTML standard allows
WHATWG, Oct 2026

WebAIM’s survey had 1,539 valid responses from screen reader users; WebAIM notes the sample was not controlled[10]. The level rule is from the HTML standard’s section on headings and outlines[6].

What header tags are, level by level

MDN’s definition: “The <h1> to <h6> HTML elements represent six levels of section headings. <h1> is the highest section level and <h6> is the lowest.”[7] The HTML standard defines a page’s outline as “all headings in a document, in tree order”, and says it should be used for things like generating tables of contents[6]. In other words, your headings are the page’s table of contents, whether you show one or not.

What each heading level is for
Our summary of MDN, the W3C tutorial and the HTML standard. Toggle columns.
Its jobHow many per pageExample on a guide page
H1Names the whole pageUsually oneRunning shoes for beginners
H2Starts a main sectionAs many as the page has sectionsHow do I choose my first pair?
H3A part of an H2 sectionAny, under an H2Cushioning
H4A detail inside an H3 partRarely neededWhat drop suits heel strikers?
H5 and H6Deeper detailAlmost never on web pagesReference docs, legal text

The H1 has its own guide: what an H1 tag is, and how many to use. The H1 is often confused with the title tag, which is covered in title tags. One naming note: in HTML, <header> is a different element, a container for introductory content such as a logo and menu. When SEO people say “header tags”, they mean headings.

A heading hierarchy, with the job of each level
<h1>Running shoes for beginners</h1>          <!-- the page's subject, once -->
  <h2>How do I choose my first pair?</h2>      <!-- a section -->
    <h3>Cushioning</h3>                         <!-- a part of that section -->
    <h3>Heel-to-toe drop</h3>
      <h4>What drop suits heel strikers?</h4>   <!-- a detail inside a part -->
  <h2>Our picks</h2>                           <!-- back up to a new section: fine -->
    <h3>Best overall</h3>
  <h2>When should I replace running shoes?</h2>

What Google says about headings

Google’s statements are consistent, and more modest than most SEO advice.

  • Headings help Google understand content. John Mueller, in a hangout reported by Search Engine Journal in January 2020: “We do use headings when it comes to search. But we use them to better understand the content on the pages.” And: “it’s not so much that suddenly your page ranks higher because you have those keywords there.” He also called headings “a bit overrated”[2].
  • Order doesn’t matter to Google. The SEO Starter Guide, under things not to focus on: “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.” And: “There’s also no magical, ideal amount of headings a given page should have.”[1]
  • Headings help readers, so use them. The same guide asks you to “break up long content into paragraphs and sections, and provide headings to help users navigate your pages”[1].
  • Headings feed the title link. Google lists heading elements among the sources for the clickable headline of a search result, and when a page has several equally prominent headings it “may use the first heading as the text for the title link”[3].
Myth
Keywords in H1 and H2 tags get extra ranking weight.
What is true
Google's John Mueller said headings help Google understand content, and that a page doesn't suddenly rank higher because it has keywords in them.
Myth
Out-of-order headings hurt rankings.
What is true
Google's SEO Starter Guide says it doesn't matter to Google Search. It does matter to screen reader users and to valid HTML.
Myth
There is an ideal number of headings.
What is true
Google says there is no magical, ideal amount. Use one where a new section starts.

Heading hierarchy: the rules that matter

Three sources agree on the rule, and the HTML standard has recently made it strict.

The W3C’s accessibility tutorial: “Nest headings by their rank (or level).” Headings of equal or higher rank start a new section; lower rank starts a subsection. “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”[8].

The HTML standard: “Each heading following another heading lead in the outline must have a heading level that is less than, equal to, or 1 greater than lead’s heading level.” It also says that if a document has headings, at least one should be level 1[6]. So an H2 followed by an H4 is not only unhelpful, it is non-conforming HTML.

MDN: “Do not use heading elements to resize text. Instead, use the CSS font-size property.” and “Do not skip heading levels”. It explains why: screen reader users “quickly jump from heading to heading”, and a missing level leaves them “wondering where the missing heading is”[7].

Pick the level by structure, and the size in CSS
/* Want a smaller heading? Change the size, not the level. */
h2.compact { font-size: 1.125rem; }

/* Not: <h4> used because it looks smaller.
   Yes: <h2 class="compact"> where a section starts. */

Two cases that look like mistakes and aren’t

Going back up. An H4 followed by an H2 just closes the subsection and starts a new section[8].

Fixed page areas. The W3C tutorial makes an exception for sidebars and similar regions: their heading ranks “should not change depending on the ranks in the content area”, because consistency across pages is more important[8]. It also shows both common layouts as acceptable: the H1 first with navigation headings one level below, or navigation first with the content heading as the H1.

Why it matters: accessibility

In WebAIM’s survey of screen reader users, 71.6% said that to find information on a long page, their first move is to navigate through the headings, against 13.6% who use the find feature and 6.4% who read the page through. 88.8% found heading levels very or somewhat useful[10]. WCAG 2.2 Success Criterion 2.4.6 (Level AA) asks that “headings and labels describe topic or purpose”; it doesn’t require headings, but it requires the ones you have to be descriptive[9]. A heading list that reads “Overview, Learn more, Learn more” fails that test.

Headings are a page’s table of contents. If the list of headings alone doesn’t tell a reader what the page covers, it isn’t doing its job.

Headings and AI answers

Here the two biggest search companies say slightly different things, and both are worth hearing.

Microsoft, writing for Bing in October 2025: “Headings are HTML tags (<h2>, <h3>) that mark where one idea ends and another begins. For AI, they act like chapter titles that define clear content slices.” Its example replaces a vague “Learn More” heading with “What Makes This Dishwasher Quieter Than Most Models?”. It adds that “Direct questions with clear answers mirror the way people search” and that assistants “can often lift these pairs word for word”, while saying there is “no secret sauce that guarantees selection in AI answers”[5].

Google, in its guide to its AI features, lists “headings that provide a clear structure to navigate content” as part of organising content for readers, and then, under things you can ignore: “There’s no requirement to break your content into tiny pieces for AI to better understand it. Google systems are able to understand the nuance of multiple topics on a page and show the relevant piece to users.”[4]

Read together: write headings that tell a reader exactly what each section holds, and don’t chop a page into fragments for machines. A descriptive heading over a section that answers it is good for both. A page cut into thirty two-sentence sections to “feed” AI is not something either company asks for.

When a heading should be a question

The GEO Audit, the 31-check page audit behind our free checkers, has three heading checks, and one of them is about questions. As coded:

  • Exactly one H1 passes when the page has one <h1>, not zero and not two.
  • Clear heading hierarchy passes when the page has at least two <h2> headings, so the content is split into sections at all.
  • Question-shaped headings looks at every H2, H3 and H4. A heading counts as a question if it contains a question mark or starts with how, what, why, when, which, who, is, are, can, does, do or should. The check passes when at least one heading is a question, and reports the share, such as “3 of 12 headings are questions”.

The bar is deliberately low: one question heading passes. The reason for the check is the Microsoft point above. People ask assistants questions, so a section headed with the question it answers, with the answer in its first sentence, is a passage that matches a prompt. That is reasoning, not a published ranking rule; no AI company documents that it rewards question headings.

Here is the same page outline before and after, scored with the audit’s own question rule. Before: 0 of 5 headings are questions, an H2 jumps to H4, and two headings say “Learn more”. After: 3 of 6 are questions, no level is skipped, and every heading names its section.

Before: 0 of 5 questions, a skipped level, duplicate headings
<h1>Acme Payroll</h1>
  <h2>Overview</h2>
      <h4>Features</h4>
      <h4>Pricing</h4>
  <h2>Learn more</h2>
  <h2>Learn more</h2>
After: 3 of 6 questions, no skips, every heading descriptive
<h1>Payroll software for small UK businesses</h1>
  <h2>What does Acme Payroll do?</h2>
    <h3>Pay runs and payslips</h3>
    <h3>HMRC filing</h3>
  <h2>How much does it cost?</h2>
  <h2>Does it work with Xero?</h2>
  <h2>Customer stories</h2>

Note what stayed a label: “Pay runs and payslips” and “Customer stories” read better as labels than as forced questions. Turn a heading into a question when the section answers one people actually ask; the People Also Ask guide shows how to find them. And answer it at once: a question heading followed by three paragraphs of preamble is worse than a label. The readability checker tests whether an opening sentence works as a quotable answer.

Real outlines from four sites

We ran four public pages through the code behind the heading checker on 11 October 2026. It reads the HTML the server sends, without running JavaScript, as most AI crawlers do. None of these is a model to copy or avoid wholesale; each shows one point.

Four real heading outlines
Checked 11 October 2026 with a desktop browser user agent; counts are from the server HTML. Toggle columns.
Headings foundWhat stands outThe point it makes
Wikipedia: HTML element1 H1, 15 H2, 15 H3, 12 H4, 3 H5; no skipped levelsA "Contents" H2 comes before the H1 in the source. 0 of 42 headings are questionsDeep hierarchy done cleanly. Label headings suit a reference page; not every page needs questions.
WordPress.org News1 H1, 4 H2, 15 H3; no skipped levelsThe H1, "News", has the screen-reader-text class: read aloud, not shownA tidy listing page. A visually hidden H1 for screen readers is allowed by Google's spam policies.
BBC News front page1 H1, 50 H2, 1 H3, 1 H4The H1 is the News logo, an SVG labelled "News". 6 of 52 headings are questionsOn a news index, each story headline as an H2 is reasonable. Real questions pass the audit's question check.
Smashing Magazine, a missing page0 H1, 1 H2, 2 H4The 404 page's H2 is followed directly by H4sThe exact skip the W3C tutorial and the HTML standard rule out. Templates for rare pages get the least review.

The WordPress case touches a common worry. Google’s spam policies list “Text that’s only accessible to screen readers and is intended to improve the experience for those using screen readers” among things that don’t violate them. What they rule out is text hidden “solely to manipulate search engines”, such as white text on white or text positioned off-screen[11]. A keyword-stuffed H1 hidden from view is the second kind.

Common heading problems and fixes

Problems the checker flags, and the fix
Our fixes, based on the W3C tutorial, MDN and the HTML standard. Toggle columns.
Why it happensFix
Skipped level (H2 to H4)A level chosen for its sizeUse the right level and change the size in CSS
Headings in the footer or menu as H2sTheme defaultsKeep fixed areas consistent; demote or use plain text for column titles
Duplicate headingsRepeated components ("Learn more")Name what is different about each section
Empty or image-only headingsIcons or logos wrapped in heading tagsGive the heading text, or alt text that reads as the heading
Paragraphs in heading tagsBold text made with a headingA heading is a title; move the sentence into a paragraph
Headings added by JavaScriptClient-rendered contentRender headings on the server so crawlers that don't run scripts see them
No H2s on a long pageOne unbroken block of textAdd an H2 wherever a new topic starts
Fix the template, not the page
Most heading problems come from a theme or a component, so the same skipped level or logo heading repeats on every page built from it. Find where the tag is set and change it once. The heading checker page has platform fixes for WordPress, Shopify and Next.js.
Before you publish
0/7

Checking headings across a site

The checker reads one page. CoreCited’s Site Audit runs the three heading checks above on every page it crawls, with each failing page listed, so a template problem shows up as one pattern instead of a hundred surprises. The free account audits 10 pages; every limit is on the pricing page.

Questions people ask

Do header tags help SEO?

They help Google understand what each part of a page is about, which is how Google itself describes their use. Google's John Mueller said in a hangout reported in January 2020 that keywords in headings don't make a page suddenly rank higher. The bigger gains are readers who can skim, screen reader users who navigate by headings, and clearer sections for AI answers.

Is it header tags or heading tags?

Heading tags is the correct HTML term: h1 to h6 are heading elements. Header tags is what most people search for, and means the same thing in SEO. In HTML, <header> is a different element: a container for a page's or section's introductory content, such as a logo and navigation.

What is the right heading hierarchy?

One H1 that names the page, an H2 for each main section, H3s for parts of a section, and so on. Going down, never skip a level: an H2 is followed by an H2 or an H3, not an H4. Going back up is fine. The HTML standard now says a heading may be at most one level deeper than the heading before it.

Does heading order matter to Google?

Google's SEO Starter Guide says it doesn't: from a Google Search perspective it doesn't matter if headings are out of order. It matters to screen reader users, for whom headings in semantic order are fantastic, in Google's words. Fix order for people and for valid HTML, not for rankings.

What is the difference between H1 and H2?

The H1 is the page's main heading, the one that says what the whole page is about. H2s divide the page into its main sections, each a part of that subject. A page has usually one H1 and several H2s. Neither carries a published ranking weight; the difference is structure.

Should headings be questions for AI search?

Some of them, where a section really answers a question people ask. Microsoft's Bing team says direct questions with clear answers mirror the way people search and can be lifted into AI answers. No AI company documents a rule that rewards question headings, and a label such as Pricing is still fine where a question would read awkwardly.

Keep reading

Sources

[1]SEO Starter Guide — Google Search Central, updated 10 December 2025
[2]Google Explains How to Use Headings for SEO — Search Engine Journal (Roger Montti), reporting John Mueller, 2 January 2020
[3]Influencing your title links in search results — Google Search Central, updated 10 December 2025
[4]Optimizing your website for generative AI features on Google Search — Google Search Central, updated 10 July 2026
[5]Optimizing Your Content for Inclusion in AI Search Answers — Microsoft Advertising blog (Krishna Madhavan, Microsoft Bing), 8 October 2025
[6]HTML Living Standard, 4.3.11 Headings and outlines — WHATWG, read 11 October 2026
[7]<h1>-<h6>: The HTML Section Heading elements — MDN Web Docs, last modified 26 August 2026
[8]Headings (Page Structure Tutorial) — W3C Web Accessibility Initiative, updated 4 May 2017
[9]Understanding Success Criterion 2.4.6: Headings and Labels — W3C, WCAG 2.2, read 11 October 2026
[10]Screen Reader User Survey #10 Results — WebAIM, survey December 2023 to January 2024, published 22 February 2024
[11]Spam policies for Google web search: hidden text and link abuse — Google Search Central, updated 28 August 2026

Find out where you actually stand

One real question, real AI engines, and the answer they gave — including who was named in it. No account, no card.