Header tags: how to structure H1, H2 and H3 for SEO

Header tags: how to structure H1, H2 and H3 for SEO

SEONovember 16, 2026
By Antonio Fernandez

TL;DR

  • The HTML standard defines six heading elements, H1 to H6. The number is the heading level: H1 is for a top-level section and H2 for a subsection.
  • HTML allows more than one top-level heading in a document, but a heading may be at most one level deeper than the one before it, so H1 straight to H3 is non-conforming.
  • Google's SEO Starter Guide says heading order does not matter for Google Search and that there is no ideal number of headings on a page.
  • Google lists heading elements such as the H1 among the sources it can use to generate the title link shown in search results.
  • W3C ties headings to WCAG success criteria 1.3.1, 2.4.1, 2.4.6 and 2.4.10, and notes that screen readers can navigate a page by its heading markup.

Header tags are the HTML heading elements, H1 through H6, that label the sections of a page: H1 is the top-level heading and H2 to H6 mark progressively deeper subsections. A sound structure uses one clear H1 that names the page, H2s for the main sections, H3s for points inside those sections, and no skipped levels on the way down.

Three audiences read that structure. Visitors scan headings to decide whether a page answers their question. Screen reader users move through a page by its headings. Google lists heading elements among the sources it can use for the title link shown in search results. This guide covers how header tags work, how they differ from the title tag, what Google documents about them, how to check heading structure on any page, and the mistakes worth fixing.

What are header tags in SEO

In HTML, a heading is marked up with one of six elements. The HTML standard says these elements represent headings for their sections, and that each has a heading level given by the number in its name. H1 is for a top-level section, H2 for a subsection, H3 for a sub-subsection, and so on down to H6.

"Header tags" is the everyday SEO name for these elements. "Heading tags" means the same thing and is closer to the wording of the standard. Neither term should be confused with the HTML header element, which wraps introductory content such as a logo and navigation, or with HTTP headers, which are sent by the server and never appear on the page.

Header tags describe the structure of a page. Its appearance is handled separately. Browsers render an H1 larger than an H3 by default, but the size is only a stylesheet rule. The level is the part that carries meaning: it tells software which heading is a parent and which is a child. Choosing a level because of how big it looks is the root of most heading problems covered later in this guide.

H1 vs H2 vs H3: how to structure headings

Think of headings as the table of contents of the page. If the headings were copied out on their own, in order and indented by level, they should read as a sensible outline of the content.

  • H1 names the whole page. It answers "what is this page about?" and usually matches the topic promised in the search result.
  • H2 opens each main section. On a service page these might be what the service includes, how it works, pricing and questions.
  • H3 divides an H2 section into its parts, such as the individual steps of a process or the individual questions in an FAQ.
  • H4 to H6 go deeper still, for content that needs more levels, such as long documentation or legal pages.

The HTML standard sets one rule for moving between levels. A heading that follows another heading must have a level that is lower, the same, or exactly one greater. Going from H2 to H3 is fine. Going from an H4 back up to an H2 is also fine, because that closes the subsection and starts a new section. Jumping from H1 straight to H3 is what the standard labels non-conforming, and its own fix is to change that H3 to an H2.

An illustrative outline for a page about office coffee machines shows the pattern:

  • H1: Office coffee machine rental in Bangkok
  • H2: Machines available
  • H3: Bean-to-cup machines
  • H3: Capsule machines
  • H2: What the rental includes
  • H2: Common questions about renting
  • H3: Is there a minimum contract?

Each heading should also make sense when read alone. "Overview" or "More information" says little to someone scanning a list of headings, while "What the rental includes" tells them what the section holds.

How many H1 tags should a page have

One H1 is the practical choice for almost every page, but that is a convention and HTML does not require it. The HTML standard allows a document to contain multiple top-level headings, and it adds that when a document has headings, at least one of them should be at level 1.

Google's SEO Starter Guide does not set a number either. It states that there is no magical, ideal amount of headings a page should have, and adds that if it feels like too much, it probably is.

The case for a single H1 rests on clarity. A page has one main topic, and one H1 states it without ambiguity for a reader, for a screen reader user listing the headings, and for any system trying to work out the main title of the page. Google's title link documentation gives related advice: make it clear which text is the main title of the page, and keep it distinctive from other text.

Two faults to check for are a missing H1 and an accidental second one. A template that wraps the site logo in an H1 gives every URL the same top-level heading. A homepage slider can output an H1 for every slide. Both are worth fixing, because the H1 no longer says what that particular page is about.

Header tags vs title tag

The title tag and the H1 are different elements with different jobs, even when they contain similar words. The title tag sits in the head of the document and is not displayed in the page body. The H1 sits in the body and is the visible headline.

Header tags vs title tag
ElementWhere it appearsMain job
Title tag (the title element)Browser tab, bookmarks, and a listed source for the title link in search resultsNames the page for people who have not opened it yet
H1Top of the visible page contentConfirms the topic for someone who has just arrived
H2 to H6Inside the page contentDivide the content into sections and subsections

The two are connected in search results. Google's documentation on title links lists the content of the title element first among the sources it uses to generate a title link. The same list includes the main visual title shown on the page and heading elements such as the H1. So a heading is one of the things Google can draw on when it decides what to show as the clickable title of a result.

That is a good reason to keep the title tag and the H1 consistent. They do not need to be identical. A title tag is often written with the search result in mind and may carry the brand name, while the H1 can be a little longer and more natural. They should plainly describe the same page. A title that promises one thing above an H1 that says another confuses the reader who has just clicked.

Do heading tags affect rankings

Google does not publish a ranking weight for heading tags, so any claim that an H1 is worth a fixed amount of ranking should be treated with suspicion. What Google does document is narrower.

The SEO Starter Guide recommends breaking long content into paragraphs and sections and providing headings to help users navigate the page. The same guide says that having headings in semantic order is fantastic for screen readers, but that from Google Search's perspective it does not matter if they are used out of order. Its stated reason is that the web in general is not valid HTML, so Search can rarely depend on the semantic meaning of the markup.

Headings matter to search mostly through what they do for the reader. Clear headings make a long page easier to use. They state the topic of each section in plain words, which helps any system reading the page match a section to a question. They are also a documented source for title links. None of this turns a heading into a place to stack keywords. A heading written for the reader, in the words the reader would use, already does the job. Reviewing headings belongs in a wider content marketing edit, because a heading can only describe a section that is itself clearly organised.

How to check heading structure on a page

Heading structure cannot be judged by looking at the rendered page, because large bold text is not always a heading and a real heading can be styled small. These three methods show the actual markup.

Browser developer tools

Right-click a headline and choose Inspect to see which element it really is. To list every heading at once, open the Console panel and run document.querySelectorAll('h1, h2, h3, h4, h5, h6'). The result shows each heading element in page order, which makes a missing H1 or a skipped level easy to spot.

The accessibility tree

Browser developer tools also include an accessibility view that shows the page as assistive technology receives it, with each heading and its level. Screen readers offer a list of headings for the same purpose. If that list reads like a sensible outline, the structure is working.

A site crawler

Checking one page by hand is quick, and checking a thousand is not. A crawler fetches every URL on a site and reports heading data in bulk: pages with no H1, pages with more than one, and H1 text duplicated across many URLs. Duplicates across a whole site can point to a template problem, in which case one fix corrects every page. A crawl of this kind is a standard step in an SEO audit.

Whichever method is used, check the rendered page as well as the raw source if the site builds its content with JavaScript, since headings can be added after the initial HTML loads.

Heading tags and accessibility

For accessibility, headings are navigation. W3C's Web Accessibility Initiative describes headings as communicating the organisation of the content on a page, and notes that browsers, plug-ins and assistive technologies can use them to provide in-page navigation. Its HTML technique for headings adds that screen readers can navigate heading markup, which lets a user find the content they want more quickly.

That only works when the markup matches the content. W3C's guidance says skipping heading ranks can be confusing and should be avoided where possible. It makes one exception: moving from a deep heading back to a higher one is fine when a subsection closes and a new section begins. For fixed parts of a layout such as a sidebar, it advises keeping heading ranks consistent across pages instead of changing them to follow the content area.

W3C relates heading practice to four WCAG success criteria: 1.3.1 Info and Relationships (Level A), 2.4.1 Bypass Blocks (Level A), 2.4.6 Headings and Labels (Level AA) and 2.4.10 Section Headings (Level AAA). The test in the technique is short. Text that acts as a heading should be marked up as one, and heading markup should not be used on content that is not a heading.

Heading mistakes to avoid

  • Choosing a level for its font size. If an H2 looks too large, change the stylesheet and leave the level alone.
  • Using heading markup for emphasis. A promotional line, a quote or a phone number set in an H3 adds a false entry to the page outline.
  • Bold text standing in for headings. A bold paragraph looks like a heading but is invisible to heading navigation.
  • No H1, or the same H1 on every page. Both leave the page without its own stated topic.
  • Skipping levels. An H4 placed directly under an H2 implies a missing layer in between.
  • Vague wording. "Introduction", "Details" and "Other" give no information out of context.
  • Keyword stuffing. Repeating the same phrase in every heading makes the page harder to read and does not match the role Google describes for headings.
  • Headings inside images. Text baked into a banner image is not a heading unless real heading markup accompanies it.

What this means in the Thai market

Thai websites follow the same rules, with a few local points to watch. Sites built with a visual page builder let an editor pick the heading level from a menu, which makes it easy to pick a level for its look. Setting heading sizes once in the theme's global styles removes that temptation, because every level then looks right without anyone changing it by hand.

Bilingual sites need the same structure in both languages. If the English page has an H1 and five H2s, the Thai page should carry the equivalent headings at the same levels, translated so they read naturally in Thai. A Thai version whose headings are left in English, or flattened into bold paragraphs, gives Thai readers less to navigate by.

Thai headings also need care in wording. Thai is written without spaces between words, so a long heading becomes a dense line that is hard to scan on a phone. Short headings built around the term a Thai searcher would type, which may be an English term such as SEO written alongside Thai words, are easier to read. Where a promotional landing page puts its main headline inside a banner image, the page still needs a real H1 in the markup.

Frequently asked questions about header tags

Are header tags and heading tags the same thing?

Yes, both names refer to the HTML heading elements H1 to H6. "Heading" is the word the HTML standard uses, and "header tags" is the common SEO shorthand. The separate HTML header element, used for the top area of a page or section, is something else.

Is it bad to have more than one H1 on a page?

It is valid HTML, but one H1 is usually clearer. The HTML standard allows multiple top-level headings, and Google's SEO Starter Guide says there is no ideal number of headings. A single H1 leaves no doubt about the main topic of the page.

Should the H1 be the same as the title tag?

It does not have to be identical, but both should describe the same topic. Google lists the title element and heading elements among the sources for title links, so two versions that agree give a consistent signal about what the page is called.

Do header tags need to include keywords?

They should use the words that describe the section, which normally includes the relevant term without forcing it. Google's guidance frames headings as a way to help users navigate, so a heading that reads naturally to a person is the right target.

Can a page skip from H2 to H4?

It should not. The HTML standard requires a heading to be at most one level deeper than the heading before it, and W3C's accessibility guidance says skipped ranks can be confusing. Google states that heading order does not matter for Search, so the reason to fix it is the reader, especially one using a screen reader.

Where to start

Heading structure is one of the cheaper things to fix on a site, because a fault that sits in a template is corrected once for every page, and the fix makes those pages easier to read and to navigate. To have on-page structure checked alongside the technical basics, see the SEO audit page, or read about SEO services in Thailand for ongoing work. If the cause sits in the theme itself, the web design page is the place to start.

Antonio Fernandez

Antonio Fernandez

Founder and CEO of Relevant Audience. With over 15 years of experience in digital marketing strategy, he leads teams across southeast Asia in delivering exceptional results for clients through performance-focused digital solutions.

Share to:
Copy link:

Read us often? Add Relevant Audience as a preferred source so our articles surface more in your Google results.