admin@talhasalman.com +92 344 2883692 Mon to Sat, 10:00 to 22:00 PKT

Header Tags for SEO: How to Use H1 to H6 Properly

What header tags are, what Google says about H1 and heading order, the H1 vs title tag difference, best practices and clean structure examples.

Header tags for SEO outline showing what H1, H2, H3, H4, H5 and H6 tags do on a page

Header tags for SEO are the HTML heading elements, H1 to H6, that structure a page into a main title, sections and sub sections. Use one clear H1 that states the page topic, H2 tags for the main sections, and H3 to H6 tags for points inside those sections. Headings help readers skim, help screen readers move through the page and help Google understand what each part of the page covers.

Headings are one of the first things I check in an on-page SEO audit, because poor structure shows up on almost every site I review. In this guide I explain what each heading level does, what Google has actually said about headings, the H1 vs title tag question, and the simple rules I follow when I structure a page. You will also find clean structure examples you can copy.

What Are Header Tags?

Header tags, also called heading tags, are HTML elements that mark the headings on a page. There are six levels, from <h1> to <h6>. The number shows the level of importance, with H1 as the top level and H6 as the lowest.

Header tags vs the page header

Header tags are not the same as the site header, which is the bar with your logo and menu. They are also different from HTTP headers. In SEO, header tags always mean the heading elements inside the page content.

What each heading level is for

TagRoleTypical use
H1Main page titleOne per page, states the topic
H2Main sectionsThe key parts of the page
H3Sub sectionsPoints inside an H2 section
H4Detail levelSteps or items inside an H3
H5 and H6Rarely neededVery long technical documents

Why Header Tags Matter for SEO

Header tags are not a magic ranking switch, but they support the things that do matter: clear topic signals, a good reading experience and accessible pages.

They help Google understand sections

Google has said that it uses headings to better understand the context of the different parts of a page. A heading that clearly names a section makes it easier to match that section to a specific question, which also helps with features such as featured snippets. My guide to SERP features explains how answer first sections under clear headings win more of them.

They help readers skim

Most visitors scan before they read. Headings let them jump to the part they need. A page that is easy to scan keeps people longer and makes them more likely to take the next step.

They help accessibility

Screen reader users often move through a page by its headings. A logical order lets them understand the outline of the page without reading every line, the same way a sighted reader would skim.

What Google Says About Header Tags

There is a lot of myth around headings, so it is worth knowing what Google has stated publicly.

Heading order and number

Google’s SEO Starter Guide lists the number and order of headings under things it believes you should not focus on. It says semantic order is great for screen readers, but using headings out of order does not matter for Google Search, and that there is no ideal number of headings for a page.

Multiple H1 tags

In 2019, John Mueller of Google said that Google’s systems have no problem with multiple H1 tags on a page and called it a fairly common pattern on the web. Many themes and page builders add extra H1 tags, and that alone will not hurt rankings. I still recommend one H1 per page, because it gives the clearest signal to readers and tools.

Google’s title link documentation lists heading elements such as <h1> among the sources it uses when it creates the title shown in search results. It also advises putting the main title in the first visible H1 on the page. That is a strong reason to keep your H1 and title tag closely aligned.

Header tag hierarchy from H1 to H6 with the role of each heading level and how the title tag differs
Each heading level has one job. The title tag is not part of the on-page outline.

H1 vs Title Tag: What Is the Difference?

The H1 and the title tag often say similar things, which is why they are easy to mix up. They have different jobs.

Where each one appears

The title tag sits in the page <head> and appears in browser tabs and, most often, as the clickable title in search results. The H1 appears on the page itself as the visible main heading. Visitors see the H1 after they click, and they see the title tag before they click.

FactorTitle tagH1 tag
LocationInside the <head>Visible in the page body
Seen bySearchers in results and browser tabsVisitors on the page
Main jobWin the clickConfirm the topic and start the page
Ideal lengthRoughly 50 to 60 charactersNo set limit, keep it readable
How manyOne per pageOne recommended

Should they match?

They should cover the same topic, but they do not need to be identical. I often write a shorter, click focused title tag and a slightly more natural H1. For example, the title tag might be “Header Tags for SEO: H1 to H6 Rules” and the H1 “Header Tags for SEO: How to Use H1 to H6 Properly”. If you need help writing titles, read my guide to writing title tags that get clicks and check the length with the free title tag checker.

Header Tags SEO Best Practices

These are the rules I follow on every page I build or audit.

Use one clear H1

Write one H1 that states the topic in plain words and includes the main keyword naturally. In WordPress, the post title is usually the H1, so do not add a second H1 inside the content.

Keep a logical order

Use H2 tags for the main sections, then H3 tags for points inside each section. Avoid jumping from H2 to H5 just to get a smaller font. If you need a different size, change the style with CSS, not the heading level.

Write descriptive headings

A reader should understand each section from its heading alone. “Step 2: Fix duplicate H1 tags” is far more useful than “Next steps”. Question style headings work well when the section answers a real search question.

Use keywords naturally

Put the main keyword in the H1 and in at least one H2 where it fits. Use related terms and real questions in other headings. Repeating the same exact keyword in every heading reads badly and adds nothing.

Do not use headings for styling

Sidebar titles, footer labels and calls to action often get heading tags only because of how they look. Use regular text with a CSS class for these, and keep heading tags for the content outline.

Keep headings short

Most good headings are under about 70 characters. Long headings are hard to skim and often hide two ideas that should be separate sections.

Header Tag Structure Examples

A well structured blog post

Here is the outline of a typical guide, shown as heading tags only:

<h1>Header Tags for SEO: How to Use H1 to H6 Properly</h1>
  <h2>What Are Header Tags?</h2>
    <h3>What each heading level is for</h3>
  <h2>Why Header Tags Matter for SEO</h2>
    <h3>They help Google understand sections</h3>
    <h3>They help readers skim</h3>
  <h2>H1 vs Title Tag</h2>
  <h2>FAQ</h2>
    <h3>Is it bad to have more than one H1 tag?</h3>

A service page

<h1>Technical SEO Services</h1>
  <h2>What the audit covers</h2>
    <h3>Crawling and indexing</h3>
    <h3>Site speed</h3>
  <h2>Pricing</h2>
  <h2>How the process works</h2>
  <h2>FAQ</h2>

A structure to avoid

A common problem is a theme that wraps the logo in an H1 and the post title in another H1, then uses H4 tags for the sidebar. The result is two competing H1 tags and an outline that jumps between levels. Fixing it usually takes a small template change.

Common header tag mistakes: two H1 tags, skipped levels, vague headings, keyword stuffing, styled headings and a missing H1
Check your templates for these six problems during every on-page audit.

How to Check Header Tags on Any Page

Use your browser

Right click the page and choose Inspect, then search the code for “<h1”. This shows every H1 and where it sits in the template. Viewing the page source with Ctrl+U works too.

Use a browser extension or crawler

SEO browser extensions can list every heading on a page in order. For a full site, crawlers such as Screaming Frog flag pages with a missing H1, multiple H1 tags or duplicate H1 text across pages.

Fix issues in WordPress

In the block editor, select a heading block and change its level from the toolbar. If the theme adds an extra H1 around the logo or site name, the fix is in the theme template or the theme settings. My guide on meta tags for SEO covers the other head elements you should check during the same review.

If you want an expert to review the headings and structure of your key pages, my on-page SEO service covers headings, titles, meta tags and internal links in one audit.

FAQ

What are header tags in SEO?

Header tags are the HTML heading elements, H1 to H6, that structure a page into a main title, sections and sub sections. They help readers skim, help screen readers and help search engines understand what each part of the page covers.

Is it bad to have more than one H1 tag?

Google has said multiple H1 tags do not cause problems for its systems. One clear H1 per page is still the best practice, because it gives the clearest signal to readers, screen readers and SEO tools.

What is the difference between an H1 and a title tag?

The title tag sits in the page head and usually appears as the clickable title in search results. The H1 is the visible main heading on the page. They should cover the same topic but do not need to be identical.

Does heading order affect rankings?

Google says using headings out of order does not matter for Google Search, though semantic order helps screen readers. A logical order still makes pages easier to read, so it is worth keeping.

How many H2 tags should a page have?

There is no ideal number. Use one H2 for each main section the topic needs. If a page feels like it has too many headings, it probably does, so merge or cut sections.

Written by Talha Salman. Last reviewed on 3 December 2026. Read how guides are researched and kept up to date on the About page.