Audit my site
On-pageBeginnerChecked against official sources · Oct 2026

Headings H1–H6: structure for readers, accessibility and search

Headings turn a page into a readable outline. Google does not count them or demand one H1, but it does use them for title links, and screen reader users depend on them to move around the page.

Author: Eugene Serbin, Head of SEO at Semalt Updated: 30 October 2026 Reading time: 18 min Visuals: 5

In short

Headings (<h1> to <h6>) label the sections of a page, so readers can scan it, screen reader users can jump through it and Google can understand what each part is about. Google does not reward a magic number or order of headings, but it does use heading elements as one source for the title link in search results. Use one clear H1 that names the page topic, H2s for the main sections and H3s inside them, and write every heading so it describes the text below it.

What headings are

MDN puts it in one line: “The <h1> to <h6> HTML elements represent six levels of section headings.” <h1> is the highest level and <h6> the lowest. A heading opens a section, and everything after it belongs to that section until the next heading of the same or a higher level.

That is why headings matter to three different audiences at once:

Headings are not the same thing as the <title> element. The title lives in the <head>, appears in the browser tab and is the main candidate for the title link in search results. The H1 is visible on the page and tells the reader where they have landed. The two should agree on the topic, but they do not need to be identical. The lesson “Title tags” covers the title element in detail.

Read only the headings of a well-built page and you get a table of contents. That is the simplest test of good structure.

Diagram · The heading outline of a well-structured page
Heading outline of a well-structured article An illustrative guide on example.com: one H1, six H2 sections and H3 subsections nested under the H2 they belong to, with no skipped levels. Reading the headings alone tells you what the page covers. example.com/guides/repot-houseplant/ · illustrative H1 How to repot a houseplant H2 When to repot H3 Signs the roots are crowded H3 Best time of year H2 What you need H2 Step-by-step repotting H3 Remove the plant from its pot H3 Loosen and trim the roots H3 Plant it in the new pot H2 Aftercare in the first weeks H2 FAQ H3 Should I water right after repotting? WHY IT WORKS · One H1 names the page topic · H2s are the main sections · H3s sit inside their H2 · No level is skipped · Each heading is unique
Illustrative page: one H1, H2s for the main sections, H3s nested under the H2 they belong to, and nothing skipped.

What Google officially says

Google says less about headings than many SEO checklists suggest. Everything below is quoted word for word from Google Search Central.

“Break up long content into paragraphs and sections, and provide headings to help users navigate your pages.”

Google Search Central — SEO Starter Guide, on easy-to-read, well-organized content

“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.”

Google Search Central — SEO Starter Guide, under “Number and order of headings”

“The web in general is not valid HTML, so Google Search can rarely depend on semantic meanings hidden in the HTML specification.”

Google Search Central — SEO Starter Guide

“There's also no magical, ideal amount of headings a given page should have. However, if you think it's too much, then it probably is.”

Google Search Central — SEO Starter Guide

“Make it clear which text is the main title for the page.”

Google Search Central — Influencing title links in Google Search

Notice what is not there. Google's documentation does not call headings a ranking factor, does not say an H1 is required, and does not say you must have exactly one H1. The Starter Guide puts the number and order of headings in its section “Things we believe you shouldn't focus on”. So when someone tells you that a second H1 “gets you penalised”, there is no Google source for it.

That does not make headings unimportant. Their SEO value comes from three things Google does document: they help users navigate, they are one of the sources for the title link, and they make it clearer which text is the main title of the page.

The title link is the clickable headline of a search result. The Starter Guide says: “There are a few sources that Google uses to generate this title link, including the words inside the <title> element (also called the title text) and other headings on the page.”

The title link documentation lists the sources in full. Among them are “Content in <title> elements”, the “Main visual title shown on the page” and “Heading elements, such as <h1> elements”. So your H1 is a real input: if Google decides your <title> is not a good description of the page, the main heading is one of the places it may take the title link from instead.

Google describes a specific problem it calls “No clear main title”: “If Google Search detects that there are multiple large, prominent headings, it may use the first heading as the text for the title link.” A page with three equally large headings at the top, for example a promo banner, the page title and a newsletter box, leaves Google to guess.

“Consider ensuring that your main heading is distinctive from other text on a page and stands out as being the most prominent on the page (for example, using a larger font, putting the title text in the first visible <h1> element on the page, etc).”

Google Search Central — Influencing title links in Google Search

In practice: make the H1 the most prominent text on the page, put it near the top of the main content, and keep it consistent with the <title>. If your title says “Running shoes for women” and your H1 says “Spring sale”, you send two different messages about the page.

One H1 or several?

This is the most argued question about headings, and the answer depends on whom you ask.

Google Search

Google has not documented a rule. The Starter Guide says the number and order of headings do not matter from the Search perspective, and that there is “no magical, ideal amount of headings”. The title link documentation only asks that your main title be clear and distinctive. A page with two H1s will not be dropped from search because of them.

The HTML standard and MDN

HTML allows several H1s. MDN explains the nuance: “While using multiple <h1> elements on one page is allowed by the HTML standard (as long as they are not nested), this is not considered a best practice.” It goes on: “A page should generally have a single <h1> element that describes the content of the page (similar to the document's <title> element).”

You may have read that inside <section> or <article> every block can start with its own H1 and the browser will work out the levels. That idea, the “document outline algorithm”, was never implemented in browsers or assistive technology, and MDN now notes that nesting multiple H1s in sectioning elements is non-conforming. Do not rely on it.

Accessibility

For screen reader users the H1 is the signal for “this is where the main content starts and this is what it is about”. Several H1s weaken that signal. MDN's summary: “Prefer using only one <h1> per page and nest headings without skipping levels.”

The practical rule

Use one visible H1 per page that names the page topic. Treat a second H1 as a clarity and accessibility issue to fix when you are in the template anyway, not as an SEO emergency. A missing H1 deserves more attention, because then nothing on the page clearly says what it is.

Logical hierarchy and skipping levels

Headings form a tree. W3C describes the rule: “Headings with an equal or higher rank start a new section, headings with a lower rank start new subsections that are part of the higher ranked section.” An H3 belongs to the H2 above it. An H2 belongs to the H1.

Skipping a level going down breaks that tree. W3C: “Skipping heading ranks can be confusing and should be avoided where possible”. MDN explains why: “A common navigation technique for users of screen reading software is to quickly jump from heading to heading in order to determine the content of the page.” If an H2 is followed directly by an H4, the listener wonders whether they missed a section.

Skipping going up is fine. W3C: “It is ok to skip ranks when closing subsections”. After an H4 you can start a new H2, because the H2 simply closes the subsections and opens a new main section.

Most pages need only H1 to H3. If you regularly reach H5 and H6, the page is probably trying to cover too much and could be split, or the content could be a list or a table instead of tiny sections.

Remember the Google quote above: out-of-order headings do not hurt you in Search. You fix the hierarchy for people, especially those using screen readers, and because a clean outline is easier for every tool to read.

How to write good headings

A heading is a promise about the text below it. Good headings let a reader understand the page from the headings alone.

For the H1 itself: it should name the page topic in plain words, match the search intent the page targets and agree with the <title>. On a product page that is usually the product name. On a category page, the category name. On an article, the article headline.

Headings, passages and featured snippets

This part is practice, not Google documentation. A clear heading followed by a direct answer makes a section easy to understand on its own. That is the kind of block Google can quote in a featured snippet or show as a relevant passage, and AI answer features also tend to work with self-contained sections.

A pattern that works well:

<h2>How often should you repot a houseplant?</h2>
<p>Most houseplants need a bigger pot when roots fill the
current one. Check the drainage holes once a year.</p>

The heading asks the question, and the first one or two sentences answer it without needing anything else on the page. Details, exceptions and examples come after. Nothing guarantees a snippet, though: Google chooses what to show for each query. The lesson “Featured snippets, lists and tables” goes deeper into formats.

Styling vs semantics

Heading levels describe structure, not size. MDN is direct: “Do not use heading elements to resize text. Instead, use the CSS font-size property.” If your H3 should look like a small label, style it that way. Do not pick an H5 because it happens to have the right font size in your theme.

The opposite mistake is just as common: text that looks like a heading but is a <div>, <span> or bold <p>. It looks right to sighted users, but screen readers do not announce it as a heading and it does not appear in their heading list. Crawlers that report headings do not see it either.

Other misuses to avoid:

When you cannot change the element, for example inside a third-party widget, role="heading" with aria-level="2" tells assistive technology to treat it as a heading. It is a fallback. A real <h2> is always better.

Code · Bad vs good heading markup

✕ Before

<header>
  <h1><img src="/logo.svg"></h1>
</header>
<main>
  <div class="big-title">
    How to repot a houseplant
  </div>
  <h4>When to repot</h4>
  <h2>Free delivery over $50!</h2>
</main>
  • Logo is the H1 on every page, without alt text
  • The real title is a styled div
  • H4 chosen for its size, H3 and H2 skipped
  • A promo line marked up as a section

✓ After

<header>
  <a href="/"><img src="/logo.svg" alt="Example"></a>
</header>
<main>
  <h1>How to repot a houseplant</h1>
  <h2 class="small">When to repot</h2>
  <p class="promo">Free delivery over $50!</p>
</main>
  • Logo is a home link with alt text
  • One H1 with the page topic
  • H2 for the first section, made smaller with CSS
  • Promo text is a paragraph
The two versions can look identical on screen; only the markup on the right tells browsers, screen readers and crawlers what the page is about.

Headings in templates

Most heading problems are not written by editors. They come from the theme or CMS template, which is why they repeat on every page of a site.

Logo or site name as H1

Many older themes wrap the logo in an <h1> on every page. The result: thousands of pages share the same H1, and the real page title is either a second H1 or demoted to an H2. Make the logo a link with an image and alt text, and give the H1 to the content title. Some themes keep the logo H1 only on the home page. That is acceptable if the home page has no better H1 to give.

Sidebar, footer and widget headings

“Recent posts”, “Categories”, “Newsletter”, “Follow us”: widgets often come with their own H2, H3 or H4. W3C's guidance for these fixed areas: “In fixed sections of the page, for example in sidebars, the heading ranks should not change depending on the ranks in the content area.” Keep them consistent across all pages. If a block is not really a section, a footer column of links for example, plain text styled as a label is often the better choice.

Listing and product grids

Category pages often mark each product or post name in a card as an H2 or H3. That is fine when it is consistent and sits below the page H1. Avoid giving every card an H1, and avoid putting the price or the button text into the heading.

Headings added by JavaScript and hidden headings

If the H1 only appears after JavaScript runs, check the rendered HTML, not just the source. Google renders pages, but a heading that exists only in a client-side component is easy to lose when something breaks. Headings hidden with CSS (for example inside collapsed tabs) are still in the HTML. Visually hidden headings for screen readers are a legitimate accessibility technique; hiding stacks of keyword headings is not.

Diagram · Where headings belong in a page template
Where headings belong in a page template A page wireframe. The logo in the header is a link with an image, not an H1. The main content holds the only H1, followed by H2 sections. The sidebar and footer use the same H2 headings on every page, or plain text when they are not real sections. <a><img alt="Example"> Logo is a link, not an H1 Nav: links, no headings MAIN CONTENT H1 How to repot a houseplant H2 When to repot H2 What you need H2 Step-by-step repotting SIDEBAR (FIXED) H2 Popular guides same rank on every page H2 Newsletter same rank on every page Footer: "Contact", "Follow us" as plain text or consistent H2s, never H1
The H1 belongs to the main content; the header, sidebar and footer keep the same, lower ranks on every page.
Cheat sheet · Headings do and don't

✓ Do

  • One visible H1 that names the page topic
  • Keep the H1 consistent with the <title>
  • H2 for main sections, H3 inside an H2
  • Describe the section in a few plain words
  • Put the key term early, in natural language
  • Make every heading on the page unique
  • Style heading size with CSS
  • Keep sidebar and footer heading ranks the same on every page

✕ Don't

  • Wrap the logo in an H1 on every page
  • Skip levels going down (H2 straight to H4)
  • Pick a level because of its font size
  • Use styled divs or bold paragraphs as headings
  • Leave empty headings or image-only headings without alt text
  • Put whole paragraphs or buttons inside headings
  • Repeat the same keyword in every heading
  • Use vague labels like “Overview” or “More info”
Most of the rules come from accessibility guidance; Google's only explicit ask is a clear, prominent main title.

Check the on-page basics across your site

OurSEO Tools runs a 69-point checklist that includes on-page and content checks, plus a technical crawl of up to 1,000 pages with status code, canonical, indexability and load time for every URL.

69-point checklistTechnical crawlContent analysis

Common mistakes

How to audit headings with a crawler

  1. Crawl the site and export the H1 and H2 of every URL. Most SEO crawlers extract them by default.
  2. Filter pages with no H1. Check whether the title exists as a styled div or only appears after JavaScript.
  3. Filter pages with more than one H1. If the second H1 is the same on every page, it is a template issue.
  4. Find duplicate H1s across many URLs. The same H1 on hundreds of pages points to a logo H1 or a missing field in the CMS.
  5. Compare H1 with the title. Look for pages where they describe different topics, or where the H1 equals the site name.
  6. Look for empty and very long headings. Both are usually editor or page builder misuse.
  7. Check the hierarchy on key templates. Open one article, one product and one category page and read the heading list with a browser extension or a screen reader's heading navigation. Look for skipped levels and fake headings.
  8. Compare raw and rendered HTML for pages built with JavaScript frameworks, to be sure the headings exist after rendering.
  9. Fix templates first, then content. One template change can fix thousands of URLs. Content fixes, like rewriting vague headings, go page by page, starting with pages that bring traffic.
Table · Example heading audit findings (illustrative)
IssueExample URLPagesLikely causeFix
Missing H1/products/oak-table/340Product title rendered as a styled divChange the template element to <h1>
Multiple H1/blog/repot-houseplant/812Logo wrapped in H1 in the headerMake the logo a link with alt text
Duplicate H1/category/chairs/?page=296Paginated pages repeat the category H1Usually fine; optionally add the page number
Empty heading/about/14Unused page builder heading blockDelete the block
Very long H2/guides/garden-soil/27Editors use H2 to highlight sentencesTurn into a paragraph or a callout
Skipped level/help/shipping/58H4 used for small subheadingsUse H3 and style it with CSS
Numbers and URLs are illustrative; sort your own findings by how many pages each issue touches and fix templates first.

Treat the results with Google's own words in mind. Out-of-order headings and a second H1 are not ranking problems. Missing or misleading main titles, fake headings and templates that hide the topic of every page are worth fixing, for readers, for accessibility and for a cleaner title link.

FAQ

Is the H1 tag a Google ranking factor?

Google does not document it as one. It does list heading elements such as <h1> among the sources for title links, and clear headings help users navigate. Write a good H1 for those reasons, not for a ranking boost.

Will multiple H1s hurt my SEO?

Google says the number and order of headings do not matter for Search. Several H1s are allowed in HTML, but MDN does not consider them best practice. Prefer one H1 for clarity and accessibility.

Should the H1 be the same as the title tag?

It does not have to be. Both should describe the same topic. The title is written for the search result and can include the brand; the H1 is written for the reader on the page.

Is it OK to skip from H2 to H4?

Avoid it going down, because it confuses screen reader users. Jumping back up, from H4 to a new H2, is fine because it closes the subsections.

Does the home page need an H1?

Yes, it should have one that says what the site or business offers. A home page H1 that only repeats the logo text says little.

Do headings inside collapsed tabs or accordions count?

They are in the HTML, so screen readers and crawlers can see them. Mark them up with the same hierarchy rules as visible headings.

Sources

Quotes checked against the official pages on 30 October 2026.