Key takeaways
- Heading tags (H1 through H6) create a content outline that helps search engines, users, and screen readers understand your page structure.
- Use exactly one H1 per page for your main topic. Use H2s for major sections and H3s for subsections. Never skip levels.
- Google uses headings as a strong contextual signal to understand what each section of content is about, according to John Mueller.
- 86% of screen reader users navigate pages by jumping between headings, making proper hierarchy an accessibility requirement.
- Well-structured headings increase your chances of appearing in featured snippets and AI Overviews, where Google pulls content from clearly defined sections.
Heading tags are the bones of your content. They tell Google what your page is about, they tell readers where to find the information they need, and they tell screen readers how to navigate the page for users who cannot see it. Get them right and your content becomes easier to crawl, easier to read, and easier to surface in search features. Get them wrong and you are making Google guess.
Most websites have heading problems. Nearly 69% of pages have improper heading hierarchy, according to accessibility audits. Some pages use headings for styling instead of structure. Others skip from H1 straight to H4, or use five H1 tags on a single page. These are not cosmetic issues. They affect how search engines parse your content and how assistive technology navigates it.
This guide covers every heading tag from H1 to H6, explains how Google actually uses them, shows you how to place keywords in headings without stuffing, and walks through the mistakes that hurt both your rankings and your accessibility. There is also a free heading checker tool at the end that you can use to audit any page in seconds.
- What are heading tags?
- The heading hierarchy: H1 through H6
- How Google uses heading tags
- H1 tag best practices
- H2 and H3: building your content outline
- When to use H4, H5, and H6
- Keyword strategy for heading tags
- Headings and accessibility
- Headings, featured snippets, and AI Overviews
- How to audit your heading structure
- 10 heading tag mistakes to avoid
- Frequently asked questions
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:
| Tag | Purpose | Typical use |
|---|---|---|
| H1 | Main page title | One per page. Defines the primary topic. |
| H2 | Major sections | Top-level content divisions. Like chapter headings. |
| H3 | Subsections within H2 | Points, steps, or sub-topics under a major section. |
| H4 | Sub-subsections | Used in detailed technical content, guides, or documentation. |
| H5 | Deep nesting | Rare. Appears in legal documents or academic papers. |
| H6 | Deepest nesting | Very rare. Almost never needed on a typical web page. |
The key rule is never skip levels. An H2 should be followed by an H3, not an H4. Jumping from H2 to H4 breaks the logical outline and creates confusion for both search engines and screen readers. It is like having a book where chapter 3 jumps directly to sub-sub-section 3.1.1 with no section 3.1 in between.
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's search advocate John Mueller has addressed heading tags multiple times. His statements give us a clear picture of what headings do and do not do for search rankings.
Headings help Google understand content
Mueller has called headings "a really strong signal telling us what that part of the page is about." Google uses heading tags to understand the context of the text and images that follow them. When Google crawls a page, it reads the H1 to identify the main topic, then uses H2 and H3 tags to understand what each section covers. This contextual understanding helps Google match your page to relevant search queries.
Headings are not a direct ranking factor
Mueller has also said that headings are "a bit overrated" as a ranking factor. Fixing your heading hierarchy alone will not jump your page from position 50 to position one. Google confirmed in 2024 that simply fixing headings will not improve rankings in isolation. The value of headings comes from the way they help Google contextualize your content and how that better understanding feeds into the broader ranking algorithm.
Multiple H1 tags are not penalized
Mueller confirmed that having multiple H1 tags on a page does not cause a penalty. Google can handle pages with zero H1 tags or five H1 tags without issues. However, using one H1 gives a clearer topical signal than using several. From a practical standpoint, one strong H1 beats multiple competing ones.
The H-level itself matters less than the content
Whether you put something in an H1 or an H5 matters less than what the heading actually says. Google cares about the text in the heading and uses it to understand the surrounding content. That said, the hierarchy tells Google the relative importance of different sections, so using the right levels still helps.
H1 tag best practices
The H1 is the most important heading on any page. It defines the primary topic and sets expectations for everything that follows.
Use exactly one H1 per page
Even though HTML5 allows multiple H1 tags, best practice is to use one. A single H1 sends a clear signal about the page's main topic. Multiple H1 tags dilute that signal and can confuse readers about what the page is primarily about.
Make the H1 unique across your site
Every page on your site should have a different H1, just like every page should have a different title tag. Duplicate H1 tags across pages create the same kind of confusion as duplicate titles. They make it harder for Google to distinguish between pages.
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 compares your title tag and H1 to verify the page topic. When the two are closely aligned, it reinforces your topical signal. When they conflict, Google may rewrite your title tag using the H1 text instead. Your H1 and title tag do not need to be identical, but they should describe the same topic with similar language.
Keep the H1 as the first heading on the page
Your H1 should appear before any H2 or H3. Placing an H2 above the H1 breaks the logical hierarchy and can confuse both crawlers and screen readers about the true starting point of your content.
Keep it concise
Aim for 20 to 70 characters. Long H1 tags lose impact and look cluttered. Short, clear headings are easier to scan and give Google a focused topical signal. 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.
When building your content strategy, focus on getting H1 through H3 right. That covers 95% of what your content will ever need.
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 the strongest place to use it outside of 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
H3 tags are a good place for long-tail keyword variations and question-based phrases. Questions like "How many H2s should a page have?" work well as H3 headings because they match the way people search and they increase your chances of appearing in People Also Ask boxes.
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
According to the WebAIM Screen Reader User Survey, 86% of screen reader users navigate pages by jumping between headings either "often" or "all the time." For these users, headings are the primary way to scan a page and find the section they need. Without proper headings, a visually impaired user has to listen to the entire page from start to finish to find a single piece of information.
Skipped levels break navigation
When a screen reader encounters an H2 followed by an H4 (with no H3 in between), the user does not know whether they missed a section or the page has a structural error. Skipped heading levels create ambiguity that slows down navigation and reduces trust in the content. The Web Content Accessibility Guidelines (WCAG) recommend using headings in a logical, sequential order without skipping levels.
Headings must be real headings
Styling regular text to look like a heading (using bold, large font sizes, or CSS classes) does not create a real heading. Screen readers only recognize text wrapped in <h1> through <h6> tags. If a section title is styled to look like a heading but is actually a <div> or a <p> with CSS, screen reader users will never find it while navigating by headings.
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
Heading structure plays a direct role in whether Google pulls your content into featured snippets and AI Overviews.
How Google extracts content for snippets
When Google creates a featured snippet, it looks for a clear question (usually an H2 or H3) followed by a concise answer in the text below it. Pages with well-structured headings that match common search queries are significantly more likely to win snippet positions. The heading acts as the question marker, and the following paragraph acts as the answer.
For example, if someone searches "what are heading tags," Google looks for pages that have a heading matching that query and a clear 40 to 60-word answer directly below it. If your heading says "Introduction" instead of "What Are Heading Tags," Google has a harder time identifying your content as the best answer.
AI Overviews use the same structural cues
Google's AI Overviews now appear on 58% of search queries. These AI-generated summaries pull information from multiple sources, and they favor content with clear heading structures that make information easy to extract. Pages with well-labeled sections (using descriptive H2 and H3 tags) are more likely to be cited as sources in AI Overviews.
Sites with structured data and clear heading hierarchy see up to 30% higher visibility in AI Overviews compared to pages with flat or broken heading structures. The pattern that wins featured snippets is the same pattern that gets your content cited by AI.
Formatting content for snippet capture
To increase your chances of appearing in featured snippets and AI Overviews:
- Write H2 and H3 headings that match common search queries
- Follow each question-style heading with a direct 40 to 60-word answer
- 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
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
- Exactly one H1: Every page should have one H1, and only one.
- H1 appears first: The H1 should be the first heading on the page, before any H2 or H3.
- No skipped levels: H2 should be followed by H3, never H4. H3 should be followed by H4, never H5.
- No empty headings: Every heading tag should contain text. Empty headings are invisible to users but show up in the HTML outline.
- No duplicate headings: Each heading should be unique. Two identical H2s on the same page suggest redundant content or copy-paste errors.
- Headings match content: Each heading should accurately describe the section that follows it.
- 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
While Google Search Console does not directly show heading issues, the "Enhancements" reports flag structured data errors that often correlate with heading problems. If Google is having trouble understanding your page content, your heading structure is one of the first things to investigate.
10 heading tag mistakes to avoid
1. Using multiple H1 tags
While not a penalty, multiple H1 tags dilute your topical signal. Stick with one H1 that clearly states the page's main topic. If you are using a CMS that adds an H1 from the page title, make sure your content does not include another one.
2. Skipping heading levels
Jumping from H2 to H4 or from H1 to H3 breaks the hierarchy. Always go in order. If you feel the need to skip a level, your content structure probably needs rethinking.
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
Some page templates or CMS configurations accidentally omit the H1 tag. Every page needs one. Check your templates to make sure the H1 is actually present in the HTML, not just styled to look like one.
7. Putting paragraphs inside heading tags
A heading should be a short title, not a full sentence or paragraph. If your heading is 30 words long, it is not a heading. It is a paragraph that has been incorrectly tagged.
8. Hiding headings with CSS
Using display: none or positioning headings off-screen to hide them from users while keeping them in the HTML is a bad practice. Google may treat hidden text as an attempt to manipulate rankings. If the heading is not important enough to show users, it does not belong on the page.
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?
Use exactly one H1 per page. While HTML5 technically allows multiple H1 tags, using a single H1 makes the main topic of your page clear to both search engines and users. Google's John Mueller has said that having multiple H1 tags will not cause a penalty, but one well-written H1 provides a stronger topical signal than several competing ones. Think of the H1 as the title of a book. You would not print two titles on the cover.
Do heading tags directly affect Google rankings?
Heading tags are not a direct ranking factor in the way that title tags or backlinks are. Google uses headings to understand the structure and context of your content, which helps it match your page to relevant queries. Well-structured headings improve readability, reduce bounce rates, increase time on page, and help Google pull your content into featured snippets and AI Overviews. All of these indirect effects support better rankings over time.
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 ↗
