SEO glossary

What are Heading Tags?

Learn what heading tags are—the collective H1–H6 HTML heading elements—and how heading hierarchy supports accessibility, content structure, and on-page SEO clarity.

On-Page SEOUpdated August 14, 2026
Also known asHTML headingsheading elementsh1-h6 tags

Definition

Heading tags are the HTML h1 through h6 elements that mark hierarchical section titles in document order, forming an outline of page content for readers, assistive technology, and search engine parsers.

Heading tags: the page outline in HTML

Heading tags are the six semantic elements—<h1> through <h6>—that label sections of content in hierarchical order. Together they form a machine-readable outline of the page: what the document is about, how major topics divide, and how fine details nest.

Heading tags are not decorative font sizes. Browsers apply default styles, but SEO and accessibility value comes from semantics: level communicates parent/child relationships, not visual weight alone.

The six heading levels at a glance

TagTypical roleCommon on
H1Primary page topicAll indexable content pages
H2Major sectionsGuides, product tabs, long articles
H3Subsections under H2FAQs, steps, feature groups
H4Detail under H3Docs, policies, deep specs
H5Micro-sectionsRare—dense reference HTML
H6Finest splitsVery rare—legal appendices

Each level has a dedicated glossary entry with use-case depth. This page covers the system—how they cooperate.

Heading hierarchy rules

One logical H1 per URL (default)

The H1 tag states the page's central topic. Marketing and editorial URLs should not compete with multiple H1s from sidebars, heroes, and article titles simultaneously.

Do not skip levels arbitrarily

Good:  H1 → H2 → H3 → H3 → H2
Risky: H1 → H4 (missing H2/H3 parent context)

Skipped levels confuse assistive technology heading rotors and SEO tools—not because Google forbids it in HTML, but because outline meaning breaks.

Headings introduce content

A heading tag followed immediately by another heading tag with no intervening copy is a structural bug unless the second heading opens a nested subsection with content below it.

Heading tags vs CSS headings

Anti-pattern:

<p class="text-3xl font-bold">Looks like H1</p>

Preferred:

<h1 class="text-3xl font-bold">Actual H1 topic</h1>

Design systems should expose semantic components (Heading level={2}) so editors cannot accidentally choose visual size over correct level.

Complete outline example

<main>
  <h1>Internal linking audit checklist</h1>
  <p>Introduction...</p>

  <h2>Prepare your crawl data</h2>
  <h3>Export server logs</h3>
  <h3>Configure crawl scope</h3>

  <h2>Analyze link equity</h2>
  <h3>Find orphan pages</h3>
  <h3>Map anchor text patterns</h3>

  <h2>Implement fixes</h2>
  <p>Conclusion...</p>
</main>

Heading tags and SEO signals

Search engines use heading tags to:

  • Segment body copy into topical blocks
  • Understand which phrases label sections vs body paragraphs
  • Occasionally source SERP title text when title tags are missing or generic

They do not replace:

  • Unique meta titles and meta descriptions
  • Substantive content depth
  • Internal linking and site architecture

Heading tags clarify; they do not substitute for quality.

Heading tags vs header element

Teams conflate heading tags with the header landmark (<header>). The header region often wraps site chrome—logo, navigation, utility search. The article's H1 usually lives in <main>, not in the global header repeated on every page.

ConceptWhat it is
Heading tags (h1–h6)Outline titles anywhere in document
<header> elementIntroductory/grouping landmark—often site chrome
Site "header" in designVisual top bar—may contain zero or one heading

See the header glossary page for chrome-specific guidance.

Heading tags in JavaScript apps

SPAs and hydrated components risk:

  • Headings rendered only after client JS executes
  • Route transitions leaving stale headings in DOM
  • Component libraries outputting <div> instead of h* tags

Validate with rendered DOM crawls, not only view-source HTML.

Clear H2/H3 question headings with direct answers below can support snippet extraction. No markup guarantees placement. Patterns that help:

<h2>What is index bloat?</h2>
<p>Index bloat is when low-value URLs accumulate in Google's index...</p>

Common heading tag mistakes sitewide

MistakeImpact
Zero H1 on templateWeak topic signal
H1 in global header on all pagesDuplicate primary topics
Widget titles as H2/H3 everywhereOutline noise
All caps keyword H2 listsPoor UX; rewrite risk
Hidden headings for keywordsSpam policy risk
Bold paragraphs instead of headingsBroken outline for AT

Heading tag audit workflow

  1. Crawl site with heading extraction per URL
  2. Flag missing H1, multiple H1, skipped levels
  3. Group by template (blog, PDP, docs)
  4. Fix CMS components emitting wrong levels
  5. Re-crawl after deploy; sample top traffic URLs manually

Heading tags by content type

Content typeTypical depth
Landing pageH1 + 2–4 H2s
Blog tutorialH1 + multiple H2/H3
Product detailH1 + H2 tabs
DocumentationH1–H4 common; H5–H6 occasional
LegalDeep H2–H6 trees acceptable

Match depth to user needs—not every page earns a six-level tree. Fixing a heading component in the theme is often the highest-leverage on-site SEO win for heading health.

How Crawlox helps with heading tags

Crawlox extracts the full h1–h6 tree for every crawled URL, highlighting missing primaries, duplicate patterns, skipped levels, and sitewide widget headings that pollute outlines. Combine heading inventories with title and body analysis to fix template-level structure—not just one-off editorial tweaks.

Related terms

Frequently asked questions

How many heading tag levels are there?

Six: h1, h2, h3, h4, h5, and h6. There is no h7 in HTML. Visual size is controlled by CSS, not by picking a higher number for bigger text.

Are heading tags ranking factors?

Google uses headings to understand structure. They are not a standalone magic lever, but clear heading tags improve readability, accessibility, and can supply text for title rewrites when title tags are weak.

What is the difference between heading tags and a header element?

Heading tags (h1–h6) label section titles in the outline. The <header> element is a landmark region for introductory chrome—logo, nav— which may or may not contain a heading tag.

Should heading levels be sequential?

Yes in practice. Do not skip from h2 to h5 without an intervening parent level in that branch. Sequential outlines help screen reader users navigate.

Can I use heading tags for styling only?

No. Use CSS classes for appearance. Misused heading tags pollute the document outline and trigger SEO audit warnings.

References

Explore authoritative guidance and frameworks related to heading tags.

Explore every glossary definition

Return to the glossary to search by term, alias, starting letter, or category.

Browse glossary