on-page seo 7 min read

H1 vs H2 vs H3: How to Use Heading Tags Correctly for SEO

Heading tags structure your content for both users and search engines. Learn the role of H1 through H6, how many headings to use, and common heading tag mistakes to avoid.

By SearchRankTool · 12 April 2026

Heading tags (H1 through H6) are one of the most fundamental on-page SEO elements. They structure your content hierarchically, signal to Google what each section is about and help users quickly scan a page to find the information they need. Used correctly, heading tags improve both readability and search relevance. Used incorrectly, they confuse both users and search engines. This guide covers everything you need to know about using heading tags effectively for SEO.

What Are Heading Tags?

Heading tags are HTML elements that define the title and section headings of a web page. They range from H1 (the highest level, used for the page title) to H6 (the lowest level, used for deeply nested subsections). In HTML, they are written as:

<h1>Main Page Title</h1>
<h2>Major Section Heading</h2>
<h3>Subsection Heading</h3>
<h4>Sub-subsection Heading</h4>

Browsers display heading tags in descending font size by default (H1 largest, H6 smallest), and they are visually prominent in page design. However, their SEO value comes not from their visual appearance but from the semantic meaning they carry — they tell Google and screen readers what each section of a page is about.

According to Google's content structure guidance, heading tags help Googlebot understand the structure and topics covered on a page, contributing to how well the page is understood and ranked for specific queries.

The H1 Tag: Your Page Title

The H1 is the most important heading on a page. It is the main title — the top-level description of the entire page's content. Every page should have exactly one H1 tag. Multiple H1 tags per page are technically permitted in HTML5 but dilute the heading's SEO signal and create ambiguity about what the page is primarily about.

Best practices for the H1 tag:

  • Include the primary keyword — the H1 should contain the main keyword you want the page to rank for, ideally close to the beginning
  • Match the title tag — the H1 and your meta title tag can be slightly different in phrasing, but they should convey the same topic. A mismatch confuses users who click a search result and see a page title that does not match the title they clicked.
  • Keep it concise — 40–70 characters is typically appropriate for an H1
  • Make it descriptive — the H1 should tell a user exactly what they will find on this page
  • Only use one per page — one H1, then H2s for major sections

H2 Tags: Main Section Headings

H2 tags define the major sections of a page. They sit below the H1 in the content hierarchy and break the content into digestible, scannable sections. Users often scan H2 headings before committing to reading a page in full — clear, informative H2s help users quickly find what they are looking for and reduce bounce rate.

From an SEO perspective, H2 tags are the second most important heading level. They provide additional keyword signals and topic context to Google. Including variations of your primary keyword and related secondary keywords in H2 headings reinforces the page's topical coverage.

Best practices for H2 tags:

  • Use H2 for all major sections of a page (typically 4–8 for a comprehensive article)
  • Include target keywords and related terms where they fit naturally — do not force keywords
  • Make each H2 stand alone: a user skimming H2s should be able to understand the page's structure
  • Use question-format H2s for FAQ sections — these are well-suited to featured snippet optimisation

H3 to H6: Subsections and Nested Structure

H3 through H6 tags create the nested structure within major sections. H3 is a subsection within an H2 section; H4 is a subsection within an H3, and so on. In practice, most content only uses H1, H2 and H3 — deeper nesting (H4–H6) is rare and usually indicates overly complex content structure.

When to use H3:

  • When a major section (H2) has multiple distinct sub-topics that benefit from their own headings
  • For FAQ subsections where the H2 is the FAQ header and each H3 is an individual question
  • For step-by-step processes where each step is a subsection of a broader process section

H4–H6 are appropriate for highly technical documentation, legal documents or academic content with complex nested hierarchies. For most blog posts, marketing pages and tool pages, stopping at H3 provides sufficient structure without over-complicating the content.

An important rule: never skip heading levels. Do not jump from H2 directly to H4 — this creates a broken hierarchy that is confusing for screen readers and semantic parsing tools.

Maintaining a Logical Heading Hierarchy

A correct heading hierarchy follows the same logic as an outline. The hierarchy must be sequential — H1 at the top, H2 below, H3 below that, never skipping levels. Here is an example of a correct structure:

H1: Complete Guide to Keyword Research
  H2: What Is Keyword Research?
  H2: How to Find Keywords for Free
    H3: Using Google Autocomplete
    H3: Using Google Search Console
  H2: Long-Tail Keyword Strategy
  H2: FAQ
    H3: How often should I do keyword research?
    H3: What tools do I need?

A broken hierarchy (e.g., H1 → H3, or H2 → H2 → H4 without an H3) creates accessibility issues for screen reader users and reduces the semantic clarity of your content for search engines. Use the heading structure as you would use an outline — logically nested, sequentially ordered.

Using Keywords in Heading Tags

Heading tags are prime real estate for keywords because Google gives them more weight than body text. However, keyword usage in headings should always be natural and serve the reader first.

Guidelines for keywords in headings:

  • H1: Always include the primary keyword — this is the most important heading
  • H2: Include the primary keyword in at least one H2, and use related/secondary keywords in others
  • H3: Keywords where they fit naturally; do not force keywords into subsection headings
  • Use your primary keyword and its variations across multiple headings — this signals comprehensive topical coverage
  • Never keyword-stuff headings — "Free Keyword Density Tool | Keyword Density Checker | Check Keyword Density" as a heading is manipulative and unappealing

Use our Keyword Density Checker to verify your keyword usage across the full page, and our Readability Checker to ensure your headings contribute to a readable overall structure.

Common Heading Tag Mistakes

The most common heading tag mistakes that hurt both SEO and user experience:

  • Multiple H1 tags — using more than one H1 dilutes the primary topic signal. Use exactly one H1 per page.
  • Using headings for visual styling — using an H2 to make text look bigger, when a styled paragraph would be more semantically correct, creates irrelevant heading signals
  • Skipping heading levels — jumping from H2 to H4 breaks the semantic hierarchy
  • Missing H1 — some templates omit the H1, relying on a styled title in the design. Google cannot always identify a visually styled title as the page's H1 — always use the H1 tag explicitly.
  • Keyword stuffing in headings — repeating keywords multiple times in a single heading, or using heading tags purely for keyword placement rather than content structure
  • Using the same H1 on every page — a common CMS misconfiguration where the site name appears as an H1 on all pages, competing with the actual page-level H1

Frequently Asked Questions

Does Google use heading tags as a ranking factor?

Yes. Google's own documentation and public statements from Google engineers confirm that heading tags help Google understand the structure and topic of a page. They are not as strong a signal as the title tag or backlinks, but they contribute to overall on-page relevance assessment, particularly for comprehensive content covering multiple subtopics.

Should my H1 be the same as my title tag?

They do not need to be identical, but they should be closely aligned. Your title tag is optimised for search result display (including brand name and clickthrough appeal). Your H1 is what visitors see at the top of the page. Minor variation is fine — for example, the title tag might include the year or brand name while the H1 is a slightly longer, more descriptive version of the same topic.

How many H2 headings should a blog post have?

There is no fixed number. The right number of H2 headings depends entirely on the content. A comprehensive 2,000-word guide might have 6–10 H2 sections. A short 800-word article might have 3–4. Each H2 should represent a genuinely distinct major section of the content — do not artificially add H2s for SEO purposes if the content does not warrant that many sections.

Is it bad to have no H1 on a page?

Yes. Every page should have an H1 that clearly states the page's main topic. Without an H1, Google must infer the page's title from other signals, which introduces ambiguity. Many CMS platforms display a styled post title without the H1 tag — always check your page source to confirm the H1 is actually present in the HTML and not just visually simulated.

Put This Into Practice

Use our free SEO tools to apply what you just read. No signup required.

Back to Blog