What are H tags? How to use H tags properly in an SEO-optimized article
Heading tags help organize webpage content into a clear hierarchy. They allow readers to scan long pages, help assistive technologies navigate between sections, and provide search engines with useful structural context.
However, headings should not be treated as places to insert keywords mechanically. Their primary purpose is to describe the sections that follow and make the page easier to understand.
This guide explains what H1–H6 tags are, how they support SEO and accessibility, how to use them correctly, and how to identify common heading problems across a website.
What Is a Heading Tag?
Heading tags are HTML elements used to define headings and subheadings within a webpage.
HTML provides six heading levels:
<h1><h2><h3><h4><h5><h6>
The heading level represents the structural depth of the section rather than a fixed font size.
For example:
<h1>Complete Guide to Technical SEO</h1>
<h2>Crawling and Indexing</h2>
<h3>How Search Engines Crawl Pages</h3>
<h3>Common Indexing Problems</h3>
<h2>Website Architecture</h2>
<h3>Internal Linking</h3>
In this structure:
- The H1 identifies the page’s main subject.
- The H2 elements identify major sections.
- The H3 elements identify subsections within those H2 sections.
Heading Tags and Visual Styling Are Different
An H1 is not automatically important because it appears larger, and an H4 is not automatically less useful because it appears smaller.
Heading level represents document structure. CSS controls visual appearance.
For example, an H2 can be styled to look smaller than an H3 if the design requires it:
h2 {
font-size: 1.5rem;
}
h3 {
font-size: 1.75rem;
}
The HTML structure remains meaningful even when the visual sizes differ.
Do not select a heading level merely because its default font size looks suitable. Use the correct semantic level, then adjust the design with CSS.
Why Heading Tags Matter
1. They Improve Content Structure
Headings divide a page into understandable sections and show how ideas relate to one another.
A clear structure helps readers answer questions such as:
- What is this page about?
- Which sections are most relevant?
- Where can I find a specific answer?
- How does this subsection relate to the main topic?
2. They Support Scanning and Readability
Many users scan a page before reading it closely. Descriptive headings help them identify whether the article contains the information they need.
Heading structure is especially useful for:
- Long-form guides
- Technical documentation
- Product comparisons
- Service pages
- Frequently asked questions
- Instructional content
3. They Support Accessibility
Screen-reader users may navigate a page by moving between headings.
A logical hierarchy makes it easier to understand the page outline without reading every paragraph from the beginning.
Headings should therefore:
- Describe the following section accurately
- Follow a logical hierarchy
- Not be used for decorative text
- Not be empty
4. They Provide Structural Context to Search Engines
Search engines can use headings as one source of information when interpreting the page’s topics and sections.
However, headings alone do not guarantee higher rankings. Search performance also depends on:
- Search intent
- Content quality
- Technical accessibility
- Internal links
- Page experience
- Website authority
- Competition
5. They Can Support Anchor Navigation
Headings with unique IDs can be linked directly.
<h2 id="technical-seo">Technical SEO</h2>
<a href="#technical-seo">Jump to Technical SEO</a>
This can improve navigation in long articles and make it easier to share a link to a specific section.
Do Heading Tags Directly Improve Rankings?
Heading tags are useful for structure and clarity, but they should not be treated as a direct ranking shortcut.
Adding a keyword to an H2 does not automatically make the page rank higher. A page with perfect heading markup can still perform poorly when:
- It targets the wrong search intent.
- The information is inaccurate or incomplete.
- The page cannot be indexed.
- The website has weak internal linking.
- Competing pages provide greater value.
The SEO benefit of headings mainly comes from making the content easier to interpret and use.
How to Use the H1 Tag Correctly
What Is the Purpose of H1?
The H1 generally identifies the main subject of the page.
<h1>What Are Heading Tags? H1–H6 SEO Guide</h1>
A useful H1 should:
- Describe the page accurately
- Match the visible content
- Be understandable without surrounding context
- Use the main topic naturally
- Avoid vague text such as “Welcome” or “Article”
Does Every Page Need an H1?
Most content and commercial pages benefit from a clear primary heading.
This includes:
- Articles
- Product pages
- Category pages
- Service pages
- Location pages
- Landing pages
The H1 should usually represent the page’s visible title rather than being hidden solely for SEO.
Can a Page Have More Than One H1?
Modern HTML permits more than one H1 in some document structures, and multiple H1 tags do not automatically cause an SEO penalty.
However, for most website templates, using one clear H1 is simpler and makes the main page topic easier to identify for users, developers, editors, and assistive technologies.
Multiple H1 tags may become a problem when:
- They represent unrelated main topics.
- The theme inserts an H1 into sidebars, logos, or widgets.
- Every product name in a list is marked as H1.
- The page outline becomes difficult to understand.
Therefore, one descriptive H1 remains a practical convention for most standard pages, but it should not be presented as an absolute technical requirement.
How to Use H2, H3, and Lower-Level Headings
Use H2 for Major Sections
H2 headings divide the page into its primary sections.
<h1>Beginner's Guide to SEO Content</h1>
<h2>Keyword Research</h2>
<h2>Search Intent</h2>
<h2>On-Page Optimization</h2>
Use H3 for Subsections of H2
<h2>Keyword Research</h2>
<h3>How to Find Seed Keywords</h3>
<h3>How to Evaluate Search Intent</h3>
<h3>How to Map Keywords to Pages</h3>
Use H4–H6 When Additional Depth Is Needed
Lower heading levels can be useful in:
- Technical documentation
- Legal documents
- Complex product manuals
- Long research reports
- Detailed tutorials
Many normal articles need only H1, H2, and H3.
Do not introduce deeper levels merely to make the page appear more detailed.
Should Heading Levels Be Skipped?
A logical hierarchy is easier to follow when levels are not skipped unnecessarily.
Clear structure:
<h2>Technical SEO</h2>
<h3>Crawlability</h3>
<h4>Robots.txt Rules</h4>
Less clear structure:
<h2>Technical SEO</h2>
<h5>Robots.txt Rules</h5>
Skipping from H2 directly to H5 may make the document outline harder to interpret.
However, an occasional skipped level does not automatically cause an SEO penalty. The main objective is to maintain a structure that users and assistive technologies can understand.
How to Write Useful Headings
1. Describe the Section Clearly
A heading should tell readers what information follows.
Weak:
Important Information
Improved:
How Heading Tags Support Accessibility
2. Match the Reader’s Search Intent
Use wording that reflects the question or task the reader is trying to complete.
Examples:
- How Many H1 Tags Can a Page Have?
- How to Check Heading Structure in WordPress
- What Is the Difference Between H1 and Title Tag?
3. Use Relevant Terms Naturally
Include the main topic or a related phrase when it accurately describes the section.
Natural:
Common H1 Tag Mistakes
Unnatural:
H1 Tag SEO H1 Optimization Best H1 Tag SEO
4. Keep Headings Specific
Headings should be concise enough to scan but detailed enough to communicate meaning.
There is no universal character limit for headings.
5. Avoid Clickbait and Unsupported Claims
Do not promise a ranking increase or guaranteed featured result when the section cannot support that claim.
6. Use Questions When They Are Natural
Question headings can be useful when the section directly answers a customer question.
They should not be added merely because a tool suggests that all headings must be questions.
7. Use Numbers Only When the Content Is a List
Numbered headings can communicate a clear sequence or quantity, but they are not inherently better for SEO.
Appropriate:
7 Common Heading Tag Mistakes
Unnecessary:
5 Facts About the Definition of an H1 Tag
H1 Tag vs. Title Tag
The H1 and title tag serve related but different purposes.
| Element | Main purpose | Where it appears |
|---|---|---|
<title> |
Identifies the document and may appear as the search-result headline | HTML head, browser tab, and potentially search results |
<h1> |
Identifies the visible main topic of the page | Within the visible page content |
They may be similar, but they do not need to be identical.
For example:
<title>H1–H6 Heading Tags: Complete SEO and HTML Guide</title>
<h1>What Are Heading Tags and How Should You Use Them?</h1>
The title is optimized for the search result and browser context, while the H1 introduces the visible page naturally.
Do Headings Help With Featured Snippets?
Clear question headings and well-structured answers may make passages easier to identify and understand.
Useful formats include:
- Question heading followed by a concise answer
- Numbered instructions
- Comparison tables
- Definitions followed by detail
However:
- A heading itself is not a featured snippet.
- Keywords in H1 or H2 do not guarantee a highlighted result.
- There is no required heading formula for earning search features.
Use clear formatting primarily because it helps users.
Heading Tags and Accessibility
Do Not Use Bold Text Instead of Headings
This visually resembles a heading but does not provide the same semantic structure:
<p><strong>Technical SEO</strong></p>
Use a real heading when the text introduces a section:
<h2>Technical SEO</h2>
Do Not Use Headings for Decoration
A short quote, slogan, price, telephone number, or button label should not automatically become a heading merely because the design requires large text.
Avoid Empty Headings
<h2></h2>
Empty headings create confusing navigation for screen-reader users.
Keep Visible and Accessible Text Consistent
A heading should accurately represent the section for both visual and assistive-technology users.
Common Heading Tag Mistakes
1. Using Headings Only for Font Size
Use CSS for visual styling and heading elements for structure.
2. Using Multiple Unrelated H1 Tags
Multiple H1 tags are not automatically harmful, but unrelated page-level headings can make the main subject unclear.
3. Missing a Clear Primary Heading
A visible primary heading helps users understand the page immediately.
4. Using Generic Headings
Examples include:
- Overview
- Information
- More Details
- Other
These may be acceptable in context, but more descriptive wording is usually better.
5. Keyword-Stuffed Headings
Headings should describe content, not function as keyword containers.
6. Skipping Levels Without a Structural Reason
Avoid moving from H2 to H5 only because the H5 style looks better.
7. Using Heading Tags for Navigation Widgets
Sidebar titles, filter labels, and footer columns may create misleading page outlines when every widget uses a high-level heading.
8. Repeating the Page Title Throughout the Page
Repeating the exact H1 in several H2 sections does not strengthen SEO and can reduce clarity.
9. Hiding Keyword-Focused Headings
Do not add invisible headings for search engines. Important headings should be visible and useful to readers.
10. Creating Headings With No Supporting Content
A heading should introduce a meaningful section. Avoid creating multiple headings followed by only one short sentence when the topics could be combined.
Heading Tags in Common Page Types
Blog Article
<h1>Complete Guide to Local SEO</h1>
<h2>What Is Local SEO?</h2>
<h2>How Local Search Works</h2>
<h2>How to Optimize a Google Business Profile</h2>
<h2>Common Local SEO Mistakes</h2>
Service Page
<h1>Technical SEO Audit Services</h1>
<h2>What the Audit Includes</h2>
<h2>Who Needs a Technical SEO Audit?</h2>
<h2>Our Audit Process</h2>
<h2>Request an Assessment</h2>
Product Page
<h1>Industrial Waterproof LED Light Model X100</h1>
<h2>Product Overview</h2>
<h2>Technical Specifications</h2>
<h2>Applications</h2>
<h2>Installation Instructions</h2>
Category Page
<h1>Industrial Safety Shoes</h1>
<h2>Shop by Protection Type</h2>
<h2>How to Choose Safety Shoes</h2>
<h2>Frequently Asked Questions</h2>
FAQ Page
<h1>SEO Service Frequently Asked Questions</h1>
<h2>How Long Does SEO Take?</h2>
<h2>How Much Does SEO Cost?</h2>
<h2>Can SEO Rankings Be Guaranteed?</h2>
How CMS Themes Affect Heading Tags
Content-management systems may generate headings automatically.
For example, a WordPress theme may output:
- The page title as H1
- The site logo as H1
- Widget titles as H2
- Related article titles as H3
- Footer columns as H4
This may create a different heading outline from the one visible in the editor.
When auditing a page, inspect the rendered HTML rather than assuming the editor reflects the final output.
How to Audit Heading Tags
Step 1: Inspect the Page Manually
Read only the headings and ask whether they form a useful summary of the page.
Step 2: View the Rendered HTML
Use browser developer tools or view the page source to identify the heading elements actually output by the template.
Step 3: Check the Hierarchy
Look for:
- A clear primary heading
- Logical H2 sections
- H3 subsections grouped under the correct H2
- Unnecessary skipped levels
- Headings used only for styling
Step 4: Check for Duplicate or Empty Headings
Repeated headings are not always wrong, but they may indicate weak templates or unclear sections.
Step 5: Review Sitewide Patterns
Use a crawler to identify:
- Missing H1 tags
- Multiple H1 tags
- Duplicate H1 text
- Empty headings
- Template-generated headings
Step 6: Evaluate the Content, Not Only the Count
A crawler may report that a page has two H1 elements, but manual review is required to determine whether the structure is actually confusing.
Do not treat every automated warning as a critical SEO error.
Tools to Check Heading Tags
1. Browser Developer Tools
Inspect the page’s rendered HTML and search for H1–H6 elements.
2. Screaming Frog SEO Spider
Screaming Frog can report H1 and H2 information across many URLs and help identify missing, duplicate, or multiple headings.
Additional heading levels may require configuration, custom extraction, or manual inspection depending on the audit.
3. SEO Meta in 1 Click
This browser extension displays headings and other page-level SEO elements for quick manual reviews.
4. Ahrefs Site Audit
Ahrefs can identify selected heading-related issues as part of a broader technical audit.
5. Accessibility Audit Tools
Accessibility tools can help identify skipped heading levels, empty headings, and structural problems.
Automated tools should support—not replace—manual review.
Heading Tag Audit Checklist
| Area | Question to check |
|---|---|
| Main heading | Does the page have a clear visible primary heading? |
| Page topic | Does the H1 accurately describe the content? |
| Hierarchy | Do H2, H3, and lower levels follow a logical structure? |
| Clarity | Can users understand the page by scanning the headings? |
| Keywords | Are relevant terms used naturally rather than repeated mechanically? |
| Accessibility | Are headings meaningful for screen-reader navigation? |
| Styling | Are headings used for structure rather than font size? |
| Templates | Does the CMS generate unexpected headings in widgets or navigation? |
| Duplicates | Do repeated headings represent useful sections or template problems? |
| Empty headings | Are all heading elements populated with meaningful text? |
Frequently Asked Questions
What are heading tags?
Heading tags are HTML elements from H1 to H6 that identify headings and subheadings. They organize content into a hierarchy that supports readability, accessibility, and page interpretation.
How many H1 tags should a page have?
Most standard webpages use one clear H1 to identify the primary topic. Multiple H1 tags are technically possible and do not automatically cause a penalty, but they should not make the page structure or main subject unclear.
Is the H1 tag a ranking factor?
The H1 provides useful structural and topical context, but adding a keyword to an H1 does not guarantee higher rankings. Search performance depends on the overall quality and relevance of the page.
What is the difference between an H1 and a title tag?
The H1 is the visible main heading within the page content. The title tag is located in the HTML head and may appear in the browser tab and search results.
Should every H2 contain a keyword?
No. Each H2 should describe its section clearly. Relevant terms may appear naturally, but repeating the primary keyword in every heading is unnecessary.
Is skipping heading levels bad for SEO?
Skipping levels does not automatically cause an SEO penalty, but an inconsistent hierarchy may make the page harder to navigate and understand, particularly for assistive-technology users.
Can headings help earn featured snippets?
Clear question headings and well-formatted answers may make content easier to interpret, but no heading structure guarantees a featured snippet.
Should heading tags be used for styling?
No. Heading tags should represent content structure. Use CSS to control font size, spacing, weight, and appearance.
Conclusion
Heading tags create a structural outline that helps users, assistive technologies, editors, developers, and search engines understand a webpage.
A strong heading structure generally includes a clear primary heading, descriptive H2 sections, and H3 or lower-level headings only where additional hierarchy is needed.
Do not use headings merely to enlarge text or insert keywords. Write headings that accurately describe each section, maintain a logical hierarchy, and help readers locate information quickly.
Heading optimization is only one part of effective SEO content writing. It should work together with search intent, useful information, internal links, technical accessibility, mobile usability, and conversion paths.




Questions & Comments
You can ask a question about this article. Viet SEO will review and reply after moderation.