Header Tags
Header tags are the HTML heading elements H1 to H6 that structure a page's content into titled sections, helping readers, screen readers and search engines.
What are Header Tags?
Header tags are the HTML heading elements, <h1> through <h6>, used to title a page and its sections in a hierarchy. The H1 usually states the page’s main topic, H2s mark major sections and H3 to H6 mark nested subsections. They help readers scan, assistive technologies navigate and search engines understand content structure.
Strictly, these are “heading” elements; the <header> element is a different thing (a container for introductory content). In SEO, “header tags” almost always means H1 to H6.
How it works
Browsers and assistive technologies build a document outline from heading levels. Screen reader users often jump between headings to find sections. Search engines use headings as strong hints about what each part of the page covers.
<h1>What is SIEM?</h1>
<h2>How SIEM works</h2>
<h3>Log collection</h3>
<h3>Correlation rules</h3>
<h2>SIEM vs SOAR</h2>
<h2>How to choose a SIEM</h2>
| Level | Typical use |
|---|---|
| H1 | Page title or main topic |
| H2 | Main sections |
| H3 | Subsections within an H2 |
| H4 to H6 | Deeper nesting, rarely needed |
Examples
- A SaaS feature page uses a single H1 (“Automated SOC 2 evidence collection”) and H2s for “How it works”, “Integrations” and “Pricing”.
- A blog post converts vague headings like “Overview” and “More info” into descriptive questions such as “How long does a SOC 2 audit take?”, which helps it win a featured snippet.
- A site uses H2 tags for small sidebar labels because of their styling. Developers switch to CSS classes so headings reflect real structure.
Best practices
- Write headings that make sense out of context; someone scanning should know what each section answers.
- Keep a logical order and avoid skipping levels without reason.
- Use CSS for visual size; choose heading level for structure.
- Mirror real questions in H2s for informational content.
- Keep headings concise.
Common mistakes
- Wrapping logos, navigation or footers in heading tags.
- Using headings purely for styling.
- Stuffing keywords into every heading until they read unnaturally.
- Leaving the H1 empty or using a generic one like “Blog”.
Header tags and AI search
AI engines retrieve passages, not whole pages. A clear heading followed by a direct answer gives systems like Google AI Overviews, Perplexity and ChatGPT a well-labeled chunk to quote. Question-shaped headings matched to buyer prompts are one of the simplest structural improvements for AI visibility; see the answer engine optimization guide.
How to audit header tags
Crawl the site with a tool such as Screaming Frog and export H1 and H2 data. Look for pages with a missing or duplicate H1, H1s identical to other pages, and templates where headings are used for styling (for example, repeated “Learn more” H3s in cards). Then read your top pages’ headings alone: if the outline does not tell the story of the page, rewrite them.
Related terms
Sources
- The HTML Section Heading elements, MDN Web Docs
- SEO Starter Guide, Google Search Central
- Featured snippets and your website, Google Search Central
Frequently asked questions
Can a page have more than one H1?
Technically yes, and Google has said multiple H1s do not cause a ranking problem. For clarity and accessibility, most sites use one H1 that matches the page's main topic, with H2s and H3s for sections. Consistency matters more than the exact count.
Are header tags a ranking factor?
Headings help Google understand page structure and the topic of each section, and Google's SEO Starter Guide recommends meaningful headings. They are not a strong standalone ranking factor, but clear headings make it easier for Google to match passages to queries and to extract featured snippets.
Should I include keywords in header tags?
Include them where natural. Headings should describe the section accurately, which often means using the terms people search for. Question-style H2s that mirror real queries work well for featured snippets and AI answers. Avoid stuffing keywords into every heading. Clarity for readers comes first.