Heading tags create the structural skeleton of a webpage. They tell both humans and search engines how your content is organised - which topics are primary, which are secondary, and how ideas relate to each other. Getting heading structure right is a fundamental part of on-page SEO that many sites still get wrong.

What Are Heading Tags?

Heading tags are HTML elements numbered H1 through H6 that define content hierarchy. They work like an outline: H1 is the title, H2 tags are main sections, H3 tags are subsections within those sections, and so on.

<h1>Main Page Topic</h1>
  <h2>First Major Section</h2>
    <h3>Subsection of First Section</h3>
    <h3>Another Subsection</h3>
  <h2>Second Major Section</h2>
    <h3>Subsection</h3>
      <h4>Detail Within Subsection</h4>

This nesting creates a document outline that search engines parse to understand what the page covers and how deeply it covers each subtopic.

Heading Tags vs. Visual Styling

An important distinction: heading tags define semantic meaning, not visual appearance. A large, bold paragraph is not a heading unless it uses an H1-H6 tag. Conversely, an H3 tag styled to look like body text is still semantically a heading.

Search engines read the HTML, not the visual output. Screen readers for visually impaired users navigate by heading tags. If your “headings” are just styled paragraphs, both audiences lose the structural information they depend on.

Wrong approach:

<p style="font-size: 24px; font-weight: bold;">This Looks Like a Heading</p>

Correct approach:

<h2>This Is a Real Heading</h2>

Style your headings with CSS for visual presentation, but always define them with proper HTML tags for semantic meaning.

The H1 Tag

The H1 is the most important heading on any page. It defines the primary topic and carries the strongest heading-level SEO signal.

H1 Best Practices

GuidelineRecommendation
QuantityExactly one H1 per page
KeywordInclude primary keyword naturally
LengthKeep concise - typically under 70 characters
Relationship to title tagThematically aligned but not necessarily identical
PositionNear the top of the content, before body text

H1 vs. Title Tag

The title tag appears in search results and browser tabs. The H1 appears on the page itself. They should target the same topic but do not need to be identical.

ElementPurposeWhere It Appears
Title tagSERP headline, browser tabSearch results, browser
H1On-page content headingThe page itself

Example:

  • Title tag: “Heading Tags (H1-H6): SEO Structure Guide”
  • H1: “Heading Tags: Building Semantic Structure with H1-H6”

Both target “heading tags” as the primary topic, but the H1 can be slightly more descriptive because it is not constrained by SERP display limits.

Common H1 Mistakes

Missing H1: Some pages have no H1 at all, usually because the CMS template does not include one or the designer used a styled div instead. Every page needs exactly one H1.

Multiple H1s: Having two or more H1 tags splits the primary topic signal. If your page has H1 “SEO Services” and H1 “Digital Marketing,” Google cannot determine which is the main topic. Pick one and demote the other to H2.

Generic H1: An H1 like “Welcome” or “Home” wastes the most important heading position. Use it to clearly state what the page is about, including relevant keywords.

Heading Hierarchy

Proper heading hierarchy follows a strict nesting order. Each heading level is subordinate to the one above it.

Correct Hierarchy Example

H1: Complete Guide to On-Page SEO
  H2: What Is On-Page SEO?
  H2: Title Tag Optimisation
    H3: Title Tag Length
    H3: Keyword Placement in Titles
  H2: Heading Tags
    H3: H1 Best Practices
    H3: Heading Hierarchy
      H4: Common Hierarchy Mistakes
  H2: Internal Linking

Each H2 represents a major section. H3 tags break those sections into subtopics. H4 goes one level deeper when needed. The structure mirrors a well-organised document outline.

Level Skipping

Jumping from H2 directly to H4 breaks the expected hierarchy:

H2: Title Tag Optimisation
  H4: Keyword Placement  ← Wrong: skipped H3

This confuses both screen readers navigating by heading level and search engines parsing the document structure. Always step down one level at a time.

Stepping back up is fine. After a section with H3 and H4 tags, you can return directly to H2 for the next major section. The rule only applies when going deeper.

How Search Engines Use Headings

Topic Understanding

Search engines use headings to build a topical map of the page. Each heading defines a sub-entity within the overall topic. When Google crawls a page about “on-page SEO” and finds H2 tags for “title tags,” “meta descriptions,” and “heading tags,” it understands that the page covers these specific aspects of on-page SEO.

This heading-based topic mapping is part of how semantic search works. Google does not just match keywords - it evaluates whether a page comprehensively covers a topic based on the structure its headings reveal.

The Heading Vector Concept

In semantic SEO, headings create a content vector - a directional signal showing how the page moves from broad topic to specific details. A well-structured heading hierarchy generates a clear vector that tells Google:

  1. What the page is about (H1)
  2. What major aspects it covers (H2 tags)
  3. How deeply it covers each aspect (H3, H4 tags)
  4. How subtopics relate to each other (the nesting pattern)

Pages with a clear heading vector tend to earn more featured snippets and passage-based rankings because Google can identify the exact section that answers a specific query.

Passage Ranking

Google’s passage ranking system can surface specific sections of a page in search results. Headings are key to how Google identifies and evaluates passages. A well-headed section with a clear H2 or H3 label is easier for Google to extract and rank independently than a section buried in unstructured text.

Heading Optimisation for SEO

Keyword Placement in Headings

Heading LevelKeyword Strategy
H1Primary keyword - mandatory
H2Primary keyword in 1-2 H2s naturally; use related terms in others
H3Secondary keywords and natural variations
H4-H6Descriptive labels - do not force keywords

The principle is diminishing keyword importance as you go deeper. Your H1 carries the most weight. Your H4 tags should simply describe what follows in that subsection.

Writing Effective Headings

Good headings are:

  • Descriptive - they tell the reader what the section covers
  • Concise - typically 5-10 words
  • Scannable - users can skim headings to find what they need
  • Unique within the page - avoid repeating the same heading text

Good headings:

  • “How Search Engines Use Headings"
  • "Common H1 Mistakes to Avoid"
  • "Heading Optimisation Checklist”

Poor headings:

  • “More Information” (vague)
  • “SEO Heading Tags H1 H2 H3 Keywords” (stuffed)
  • “Section 3” (meaningless)

Headings and Content Writing

Headings should be written during the content planning phase, not added after writing. Your heading outline is your content plan. If the outline does not make sense as a standalone structure, the content will not flow logically either.

Content planning workflow:

  1. Define H1 based on primary keyword and page purpose
  2. Outline H2 sections covering the main aspects of the topic
  3. Add H3 subsections where deeper coverage is needed
  4. Write content within each heading section
  5. Review the heading outline independently - does it tell a complete story?

Common Heading Tag Mistakes

Using Headings for Styling

Using H3 because you want medium-sized bold text is incorrect. Headings define structure, not appearance. Use CSS classes for visual styling and reserve heading tags for actual content hierarchy.

Keyword Stuffing Headings

H2: SEO Heading Tags for Better SEO Rankings Using Heading Tags

This damages readability and signals to Google that you are manipulating heading tags rather than creating genuine content structure. Use each keyword once, naturally.

Inconsistent Hierarchy Across Pages

If your blog posts use H2 for main sections on some pages and H3 on others, the inconsistency makes it harder for Google to interpret your site’s content patterns. Establish a heading convention and apply it across all pages.

Hiding Headings with CSS

Some developers hide headings visually (display:none or text-indent:-9999px) while keeping them in the HTML. This is a cloaking technique that Google can detect and penalise. If a heading is not visible to users, it should not be in the HTML.

Too Many or Too Few Headings

A 2000-word article with only an H1 and one H2 is understructured. A 500-word article with 15 headings is overstructured. Match heading density to content length and complexity.

General guidance:

  • Short pages (300-500 words): H1 + 2-3 H2 tags
  • Medium pages (500-1500 words): H1 + 3-6 H2 tags with H3 subsections as needed
  • Long pages (1500+ words): H1 + 5-10 H2 tags with H3 and H4 nesting

Heading Tag Audit Checklist

Structure

  • Exactly one H1 per page
  • H1 contains primary keyword
  • Heading levels are not skipped (no H2 to H4 jumps)
  • Each heading accurately describes its section
  • Heading hierarchy forms a logical outline

SEO

  • Primary keyword appears in H1 and at least one H2
  • Related keywords used naturally in H2 and H3 tags
  • No keyword stuffing in any heading
  • Headings are unique within the page (no duplicates)

Technical

  • All headings use proper HTML tags (not styled paragraphs)
  • No hidden headings (display:none, visibility:hidden)
  • CMS templates generate correct heading structure
  • Heading tags are not used for non-heading content (navigation, footer)

Accessibility

  • Screen reader navigation by heading produces a logical outline
  • Heading text is meaningful out of context
  • No empty heading tags in the HTML

Heading tags are one of the simplest on-page SEO elements to get right, yet one of the most commonly misused. A clear heading hierarchy helps Google understand your content structure, helps users scan for the information they need, and helps screen readers navigate the page. Start with a single, keyword-focused H1, build a logical outline with H2 and H3 tags, and resist the temptation to use headings for visual styling. The structural clarity pays dividends across rankings, user engagement, and accessibility.

Frequently Asked Questions

How many H1 tags should a page have?
One. While HTML5 technically allows multiple H1 tags within sectioning elements, SEO best practice is to use a single H1 per page. The H1 defines the page's primary topic for search engines. Multiple H1 tags dilute that signal and create ambiguity about what the page is fundamentally about. Use H2 tags for your main content sections instead.
Do heading tags directly affect rankings?
Heading tags are a confirmed on-page signal. Google uses them to understand content structure and topic relevance. John Mueller has stated that headings help Google understand page structure. They are not as strong a ranking factor as title tags or backlinks, but they contribute to how Google interprets your content. More importantly, good heading structure improves user experience and engagement metrics, which indirectly support rankings.
Does it matter if I skip heading levels?
Yes. Jumping from H2 to H4 (skipping H3) breaks the logical hierarchy. Screen readers and search engines both expect a consistent nesting structure. Skipping levels signals that the document outline is incomplete or poorly structured. Always step down one level at a time: H1 to H2, H2 to H3, and so on. You can step back up multiple levels - going from H4 back to H2 is fine when starting a new major section.
Should I put keywords in every heading?
No. Include your primary keyword in the H1 and naturally in one or two H2 tags where it fits. Beyond that, use headings to describe the section's content accurately rather than to repeat keywords. Keyword-stuffed headings look spammy to both users and Google. Your H3 and H4 tags should use natural, descriptive language that helps readers navigate the page.
Is using CSS styling instead of heading tags a problem?
Yes. Making text bold and large with CSS creates visual headings but provides no semantic meaning to search engines or screen readers. Google cannot infer heading hierarchy from font size - it reads the HTML tags. Always use proper H1-H6 elements for headings. Conversely, do not use heading tags just to make text bigger - that misrepresents your content structure. Style headings with CSS, but define them with HTML.