HomeAboutServices PortfolioSkillsToolsBlog ClientsContact

Heading tags for SEO: H1–H6 examples and best practices

Key takeaways

  • Heading tags (H1 through H6) create a content outline that helps search engines, users, and screen readers understand your page structure.
  • Give the main content a clear H1 and use H2s for major sections and H3s for subsections. Avoid skipping levels within a section.
  • Descriptive headings help readers understand a page and give Google context; heading markup alone cannot promise better rankings.
  • Real heading elements help screen reader users move through a page by section.
  • Answer the question under a descriptive heading in plain language. Heading structure does not guarantee a featured snippet or AI citation.
Source code on a screen showing HTML heading structure and web page hierarchy

Heading tags organize your content. They help readers scan sections, let screen reader users navigate by heading, and give Google context about a page. A useful heading names the section that follows it; a large, bold paragraph without heading markup does not provide the same structure.

Common problems include choosing heading levels for their visual size, vague labels such as “More information,” and jumping from an H2 to an H4 within the same section. Those patterns can make the page outline harder to follow. Check the outline in your rendered page before changing a heading solely for SEO.

This guide explains H1 through H6, keyword placement and common structure and accessibility problems. Use the worked audit and free heading checker to inspect your rendered page before making changes.

What are heading tags?

Heading tags are HTML elements that define titles and subtitles on a web page. They range from <h1> (the most important) down to <h6> (the least important). In HTML, they look like this:

<h1>Main page title</h1>
<h2>Major section heading</h2>
<h3>Subsection heading</h3>
<h4>Sub-subsection heading</h4>

Think of heading tags as the table of contents for a book. The H1 is the book title. H2 tags are chapter titles. H3 tags are section titles within chapters. H4, H5, and H6 break things down further when the content needs that level of detail.

Heading tags are different from the HTML <header> element. The header tag is a container that wraps introductory content like logos and navigation menus. Heading tags (H1 through H6) define the actual content hierarchy. When SEO professionals say "header tags," they almost always mean heading tags.

One important distinction: heading tags are structural elements, not styling elements. Using an H2 because you want bigger text is wrong. If you need larger text, use CSS. Heading tags should only be used when the text is genuinely a title or subtitle for a section of content.

The heading hierarchy: H1 through H6

Heading tags follow a strict hierarchy from H1 (highest importance) to H6 (lowest). Here is what each level is for:

TagPurposeTypical use
H1Main page titleOne per page. Defines the primary topic.
H2Major sectionsTop-level content divisions. Like chapter headings.
H3Subsections within H2Points, steps, or sub-topics under a major section.
H4Sub-subsectionsUsed in detailed technical content, guides, or documentation.
H5Deep nestingRare. Appears in legal documents or academic papers.
H6Deepest nestingVery rare. Almost never needed on a typical web page.

Use levels that reflect the section nesting. Avoid jumping from H2 directly to H4 within a section when an H3 is the missing parent. Returning from H4 to H2 closes the deeper subsections and starts another major section; that is valid.

Here is what proper heading hierarchy looks like on a blog post:

H1: How to Train for a Marathon
  H2: Building Your Base Mileage
    H3: Weeks 1 to 4: Easy Runs
    H3: Weeks 5 to 8: Adding Distance
  H2: Nutrition During Training
    H3: Daily Meal Planning
    H3: Race Day Fuel
  H2: Common Training Mistakes
    H3: Increasing Mileage Too Fast
    H3: Ignoring Rest Days

Notice how the structure reads like an outline. Each H2 is a main topic. Each H3 supports its parent H2. There are no skipped levels and no random jumps. This is exactly the kind of content structure that Google can parse quickly and that readers can scan at a glance.

How Google uses heading tags

Google can use prominent page text when generating title links. Clear section labels also help readers navigate. The guidance below distinguishes these documented uses from unproven ranking formulas.

Headings help Google understand content

Google can use prominent text and headings to understand what a page and its sections cover. Write headings that describe the content below them. For example, “How to check heading order in Chrome” tells a reader more than “Overview.” See Google's title-link guidance for how prominent page text may also inform a search result's title.

A heading change is not a complete ranking strategy

Do not treat a heading change as a standalone ranking fix. First make sure the page answers the searcher's question, is crawlable and has a clear title. Then use headings to make the answer easy to find. Search Console can show whether the page gains visibility over time, but it cannot attribute a change in rankings to one heading edit.

Multiple H1 tags are not penalized

Multiple H1 elements are not an automatic Google penalty. For most article and service-page templates, one visible heading for the main content is easy to understand and maintain. If a template has more than one H1, check whether the outline still makes sense to a reader before changing it.

The H-level itself matters less than the content

Heading levels describe how sections nest. Write meaningful labels and select levels that fit the outline. Do not infer a fixed Google ranking weight for H1 versus H5 from their HTML level.

A structured document outline on paper, showing how heading hierarchy organizes content

H1 tag best practices

The main content heading names the page topic and sets expectations for what follows. H1 is the usual level for that heading in an article or service page.

Use a clear main heading

One H1 for the main article or service is a useful convention. It tells readers where the main content starts and keeps templates consistent. Multiple H1 elements are not a ranking penalty; inspect the page outline and choose the structure that best describes the content.

Use a heading that distinguishes the page purpose

Write a descriptive main heading that sets the right expectation for this page. Similar wording across pages is a reason to check their purpose, not proof of a ranking defect. Review the title tag and main content together, and clarify them when distinct pages are hard to tell apart.

Include your primary keyword naturally

Your H1 should contain the primary keyword you want the page to rank for. Place it toward the beginning of the heading where possible, but never force it. "How to Choose Running Shoes" is better than "Running Shoes: How to Choose the Best Running Shoes for Running." The first reads naturally. The second is keyword stuffing.

Align the H1 with your title tag

Google can use the title element, the main heading and other prominent text when generating a title link. Keep them consistent about the page topic. They do not need identical wording.

Start the main content with its main heading

Start the main article with its main heading, usually H1. Headings in fixed navigation or sidebar regions may occur earlier in the document; assess each region in context rather than requiring H1 to be the first heading everywhere.

Keep it concise

Make the H1 as short as possible while still describing the page accurately. There is no fixed character limit. Compare these two:

  • Weak: "Everything You Need to Know About How to Use Header Tags on Your Website for Better Search Engine Rankings"
  • Strong: "Heading Tags SEO: H1 to H6 Best Practices"

H2 and H3: building your content outline

If the H1 is your book title, H2 tags are your chapter headings. They divide the page into major sections and tell both Google and readers what each section covers.

H2 tags: your main sections

Every major section of your page should start with an H2. On a blog post, H2 tags typically map to the entries in your table of contents. On a product page, they might separate features, specifications, and reviews.

Good H2 tags are specific and descriptive. Avoid generic headings like "More Information" or "Details" that could apply to any section on any page. Instead, write headings that state what the section covers. "How Google Uses Heading Tags" tells the reader (and Google) exactly what follows. "Overview" tells them nothing.

H3 tags: subsections that support H2s

H3 tags break down the content within an H2 section. If your H2 is "Nutrition During Training," your H3s might be "Daily Meal Planning" and "Race Day Fuel." Each H3 should logically belong under its parent H2.

A useful test: if you remove all the body text and read only the headings, they should tell a complete story. Your heading outline should make sense on its own as a standalone summary of the page.

How many H2s and H3s should a page have?

There is no fixed limit. The number depends on how much content you have and how many distinct topics you cover. A 500-word page might need three or four H2s. A 3,000-word guide might need ten or more H2s with several H3s under each one. The goal is to give every distinct section a heading, not to hit a specific count.

What matters is that the headings match the content. Adding empty headings to pad the count is worse than having fewer headings that accurately reflect the structure.

When to use H4, H5, and H6

Most web pages never need headings beyond H3. The H4, H5, and H6 tags exist for content that requires deeper nesting, but that level of detail is uncommon outside specific content types.

When H4 tags make sense:

  • Technical documentation with nested sub-procedures
  • Legal or regulatory pages with multi-level clause structures
  • Product comparison pages where each feature has sub-specifications
  • Academic or research content with detailed methodology breakdowns
  • Long-form guides over 4,000 words with layered subtopics

When H5 and H6 are used:

Almost never on standard web pages. If you find yourself using H5 or H6 tags, consider whether your page is trying to cover too much ground. It might be better to split the content into multiple pages, each with its own clear H1-through-H3 structure. A page that needs six levels of headings is usually a page that should be three separate pages.

Start with a clear main heading, major sections and useful subsections. Add deeper heading levels only when the content needs them.

Keyword strategy for heading tags

Heading tags are an opportunity to signal topical relevance to Google, but the approach needs to be natural, not mechanical.

Primary keyword in the H1

Your H1 should include the primary keyword for the page. This is the term you want to rank for, and the H1 is a useful place to describe the topic alongside the title tag. Place it near the beginning of the heading when possible.

Secondary keywords in H2 tags

Use secondary keywords and closely related terms in some of your H2 tags. Not every H2 needs a keyword. If your primary keyword is "heading tags SEO," your H2s might include terms like "heading hierarchy," "keyword strategy for headings," and "heading structure mistakes." These are natural variations that support the main topic without feeling forced.

Long-tail variations in H3 tags

Use specific questions and related phrases where they accurately label a subsection. An H3 such as “How many H2s should a page have?” makes the answer easy to locate; it does not establish eligibility or a probability of inclusion in People Also Ask.

What to avoid

Do not stuff keywords into every heading. A page where every H2 and H3 contains the same keyword phrase reads as spam to both users and Google. Here is the difference:

  • Keyword stuffed: "Best Heading Tags SEO Tips," "Heading Tags SEO Guide," "Heading Tags SEO Mistakes," "Heading Tags SEO FAQ"
  • Natural: "How Google Uses Heading Tags," "Keyword Strategy for Headings," "10 Common Mistakes to Avoid," "Frequently Asked Questions"

Google understands semantic relationships. You do not need to repeat the exact keyword in every heading. Using related terms and natural language gives Google the context it needs to understand your page's topic.

Headings and accessibility

Heading structure is not just an SEO consideration. It is an accessibility requirement that directly affects how people with disabilities navigate your content.

Screen readers rely on headings for navigation

Screen readers can present a list of headings so users can move directly to a section. The W3C Web Accessibility Initiative heading tutorial recommends headings that reflect the page's organization. Name each section clearly and use actual heading elements rather than visual styling alone.

Skipped levels break navigation

Within a section, an H2 followed immediately by an H4 suggests a missing H3. The W3C advises avoiding that jump where possible. Returning from an H4 subsection to an H2 for a new major section is normal; that closes the earlier section rather than skipping a level.

Headings must be real headings

Visual styling alone does not supply heading semantics. Prefer native <h1> through <h6> elements. A correctly implemented role="heading" with aria-level can also expose a heading to assistive technology, as W3C ARIA12 explains. Review semantics, not just font size.

The reverse is also true. Using heading tags on text that is not actually a heading (like a call-to-action button or a sidebar label) pollutes the heading outline and makes the page harder to navigate.

The overlap between accessibility and SEO

Everything that makes headings good for accessibility also makes them good for SEO. A clear hierarchy, descriptive heading text, no skipped levels, and proper HTML structure are best practices for both. When you build your pages with accessibility in mind, you are also building them for search engines. The two goals are not separate.

Headings, featured snippets, and AI Overviews

Clear headings and direct answers make a page easier to use. Google chooses featured snippets and AI Overview sources using its own systems; no heading pattern guarantees inclusion.

If your goal is to understand the search feature itself, see the featured snippets guide before changing heading levels just to chase a result.

How Google extracts content for snippets

If a section answers “What are heading tags?”, say so in the heading and explain the answer immediately below it. That helps readers find the answer without scrolling through generic introductions. Google may choose to show part of that answer in a result, but it can also choose another passage or another page.

Write sections that make sense on their own

Write self-contained explanations under descriptive headings so someone arriving at a section can understand it in context. Use examples and cite original sources for claims. This improves the page for readers regardless of whether an AI feature chooses to cite it.

Formatting content for snippet capture

Use these patterns to make answers easier to find and understand. Google’s AI feature guidance does not prescribe a heading-level formula for inclusion:

  • Write H2 and H3 headings that match common search queries
  • Follow each question-style heading with a direct answer of whatever length the question needs
  • Use ordered lists under "how to" headings
  • Use tables under comparison headings
  • Keep the answer close to the heading with no filler paragraphs in between

Worked heading audit: a product category page

Illustrative example: a running-shoe category page uses a large H2 for its page name, jumps to H4 for a buying section, and gives several unrelated sections the same “More information” label. The audit needs to connect each finding to the content structure. It is not a ranking forecast or an automated accessibility certification.

Before and after: the main content outline
BeforeProposed outlineReason
H2: Running shoesH1: Running shoesA clear main content heading names the category.
H4: Choosing a fitH2: How to choose running-shoe fitThis is a main buying section, not a deeply nested subsection.
H2: More informationH3: Check length and widthThe section supports the fit advice above it.
H2: More informationH2: Delivery and returnsA separate topic gets its own descriptive heading.
H3: [empty]Remove the empty elementThe brackets annotate an element with no text; an empty heading does not label a section.

The expected outline is H1 → H2 → H3 → H2. Returning from H3 to H2 closes the subsection and starts a new major section; it is valid. The goal is to describe the relationships between sections, not use every heading level or force a keyword into each heading.

Check the rendered page, then make the smallest useful fix

  1. Open the public page and inspect the headings after the page finishes rendering. Check whether the CMS also adds a page heading, mobile copy or hidden duplicate.
  2. Copy the relevant rendered HTML into the free heading checker. Review its outline and flags together with the visible sections.
  3. Decide which flags need a change. A repeated label in separate navigation regions can have a legitimate purpose; an empty main-content heading needs closer review.
  4. Choose the correct element for each section. Preserve its visual appearance with CSS rather than choosing H4 solely because it is smaller.
  5. Reload the page and check the outline again. Confirm that the section's wording still describes the answer beneath it.

W3C's heading guidance explains nesting and the valid return to a higher-level section. A tool flag is a review prompt, not proof of a Google penalty. Search Console measures search performance and cannot certify a page's heading accessibility.

Download this annotated audit and a blank heading audit worksheet. Record the URL, section, current element, proposed element and the reason for the change. The same approach works for a documentation page, product page or article. For the wider review, follow the on-page SEO checklist.

How to audit your heading structure

Checking your heading structure should be part of every SEO audit. Here is how to do it quickly.

Use a heading checker tool

The fastest way to audit headings is to paste your page's HTML into a heading structure checker. The tool extracts all heading tags, shows you the hierarchy as a visual tree, and flags issues like skipped levels, missing H1 tags, duplicate headings, and empty heading elements.

What to look for in an audit

  1. A clear main heading: One H1 is a useful article-template convention. Multiple H1 elements are not automatically a Google penalty.
  2. Main-content starting point: Begin the main article with its main heading; inspect navigation and sidebar headings in their own context.
  3. Logical nesting: Avoid skipping a subsection level. Returning to a higher-level section is valid.
  4. No empty headings: Every heading tag should contain text. Empty headings are invisible to users but show up in the HTML outline.
  5. Unambiguous labels: Review repeated labels within the main content. Repetition in separate regions may be legitimate; clarify labels when readers cannot distinguish their sections.
  6. Headings match content: Each heading should accurately describe the section that follows it.
  7. Headings are not used for styling: If a heading is only used because the text needs to be larger, replace it with a styled <p> or <div>.

Manual check with browser developer tools

You can also check headings directly in your browser. Right-click the page, select "Inspect," and search the HTML for <h1, <h2, and so on. This shows you every heading element and its position in the page structure. For a faster approach, install a browser extension like HeadingsMap or the Web Developer toolbar, which visualize the heading outline in a sidebar.

Check with Google Search Console

Search Console does not provide a heading-order or accessibility report. Its enhancement reports concern supported structured data, not heading validation. Review rendered HTML and use an accessibility review for heading structure; use search reports separately to monitor page and query performance.

10 heading tag mistakes to avoid

1. Using multiple H1 tags

Multiple H1 tags are not an automatic SEO error. If your CMS adds an H1 from the page title, check whether a second one repeats it or makes the main page topic unclear.

2. Skipping heading levels

Jumping from H2 to H4 within one section can confuse readers using a heading list. Use H3 for the subsection, or reconsider whether it is a subsection at all. Returning from H4 to H2 for a new major section is fine.

3. Using headings for visual styling

Choosing an H3 because it is the right font size, or using an H2 to make a call-to-action look bigger, misuses the tag. Headings are for structure, not appearance. Use CSS for styling.

4. Writing generic headings

Headings like "Introduction," "Overview," "More Info," and "Conclusion" waste an opportunity. These generic labels tell Google nothing about the section's content. Write specific, descriptive headings that include relevant terms.

5. Keyword stuffing headings

Repeating the same keyword phrase in every heading signals spam. Use natural language, semantic variations, and related terms instead of repeating the exact match keyword over and over.

6. Missing the H1 entirely

For an article or service template, a clear main heading, usually H1, helps identify the page topic. Check that it is present with heading semantics rather than styling alone. Treat this as a template convention rather than a standalone ranking requirement.

7. Putting paragraphs inside heading tags

A heading should label the section that follows it. Prefer concise wording, but there is no universal word limit: a full sentence can be a useful heading. Move extended explanation into a paragraph when it no longer works as a section label.

8. Hiding headings with CSS

Do not hide keyword text to manipulate search rankings. Headings provided for assistive technology and content in legitimate disclosure interfaces can have a valid purpose. Check how each element is exposed and used; Google’s hidden-text policy distinguishes manipulative hiding from accessibility and usability features.

9. Inconsistent heading structure across pages

If your blog posts use H2 for sections but your service pages use H3, or if some pages have H1 tags and others do not, your site lacks a consistent heading pattern. Create a heading template for each content type and stick to it. Consistency makes both auditing and internal linking easier.

10. Ignoring headings during content updates

When you update an old page, it is easy to add new sections with incorrect heading levels that break the existing hierarchy. Always review the full heading structure after making changes. Run it through the heading checker to verify the structure is still clean.

Need help with your heading structure and on-page SEO?

Getting headings right is one part of a complete on-page optimization process. I audit heading structure, title tags, meta descriptions, internal links, and content hierarchy to make sure every page on your site is set up to rank.

On-page SEO service ↗

Frequently asked questions

How many H1 tags should a page have?

One clear H1 for the main content is a useful convention. Multiple H1 elements do not automatically cause a Google penalty. Check that a reader can identify the main page topic and that the rest of the headings form a logical outline.

Do heading tags directly affect Google rankings?

Headings can help Google understand a page and help readers find an answer. Changing heading levels alone does not guarantee better rankings, engagement or search features. Focus on useful content and a clear page structure together.

What is the difference between header tags and heading tags?

These terms are often used interchangeably, but they refer to different HTML elements. Heading tags are H1 through H6 elements that define titles and subtitles within your page content. The header tag (<header>) is a semantic HTML5 container element that typically wraps introductory content like a site logo, navigation menu, or page banner. When SEO professionals say "header tags," they almost always mean heading tags.

Should I use keywords in every heading tag?

No. Place your primary keyword in the H1 and use related secondary keywords or natural variations in some H2 and H3 tags where they fit the content. Forcing keywords into every heading makes the page read like spam. Google is smart enough to understand topical relevance from context, so write headings for the reader first and include keywords only where they sound natural.

Audit your heading structure for free

Paste your page's HTML source code into the heading checker to see the full H1 through H6 tree, spot skipped levels, and find structural issues in seconds.

Open heading checker ↗