Heading Tags for SEO: How to Use H1 to H6 the Right Way

Minimalist featured image with the title "Heading Tags for SEO: How to Use H1 to H6 the Right Way" on a dark navy background with blue and cyan accents, featuring an H1–H6 heading hierarchy, SEO magnifying glass, HTML code icon, and website structure checklist.

Heading tags (H1 to H6) are HTML elements that mark the titles and subheadings of a web page. For SEO, use one clear H1 for the main topic of the page, H2s for major sections and H3s for subsections inside them, keep the hierarchy logical, and include keywords naturally where they describe the section. Good headings help search engines and users understand your content, make pages easier to read and help screen reader users navigate. Below: how they work, best practices, examples and common mistakes.

What are heading tags?

Heading tags are HTML elements used to define headings on a web page, from H1 (most important) to H6 (least important). They create the outline of the page, like a table of contents:

<h1>Tags for SEO</h1>

  <h2>What are they?</h2>

    <h3>Best practices</h3>

You’ll also hear them called header tags or HTML headings. Strictly speaking, <header> is a different HTML element (a page or section header area), but in SEO “header tag” almost always means H1 through H6.

Tag Used for
H1 The main title of the page
H2 Major sections
H3 Subsections inside an H2
H4 and below Deeper levels, rarely needed in blog posts

Why heading tags matter for SEO

Header tags play three roles: they help a search engine crawler understand the structure of your content, they make the page easier to read, and they help screen readers navigate. They aren’t a strong ranking factor on their own, but they support everything that is.

  • Topic signals. Headings tell a search engine what each section is about, which helps it match passages to a query.
  • Readability. Most visitors scan. Clear headings and subheadings help them find the part they need.
  • Featured snippets and AI answers. A question as an H2 followed by a short answer is an easy passage for a featured snippet or an AI Overview to quote.
  • Accessibility. Screen reader users often jump between headings to move through a page.

Google’s SEO Starter Guide notes that headings in semantic order are helpful for screen readers, while from a Google Search perspective it doesn’t matter if they’re out of order. So build a logical hierarchy for users first; it helps Google too.

Best practices: how to use headers

1. Use one H1 tag per page

Give every page a single H1 heading that states the main topic. Google has said multiple H1s won’t hurt your SEO, but one H1 per page keeps the content structure clear for readers and tools. Your theme may already wrap the post title in the main heading, so don’t add a second one in the content.

2. Put the primary keyword in the H1

Use the primary keyword in the H1 if it reads naturally. The main heading and the title tag can match or differ slightly; the title tag is written for search results, the H1 for readers on the page. See our guide to writing title tags.

3. Use H2 and H3 for sections

Think of H2s as the chapters and H3s as parts of a chapter, in a hierarchical outline. If you read only the headings, you should understand what the page covers.

4. Don’t skip levels

The W3C’s headings tutorial advises against skipping heading ranks, for example a second-level heading followed directly by a fourth-level one. Skipping levels can be confusing for screen reader users. Going back up a level when a new section starts is fine.

5. Include keywords naturally

Use relevant keywords and close variants in headings where they describe the section. Don’t force the same phrase into every heading; repeated keywords read badly and won’t help your SEO rankings.

6. Make headings descriptive and readable

“Step 3” says nothing. “Step 3: Group keywords by search intent” tells readers and search engines exactly what follows. Question headings work well for FAQ-style sections.

7. Use heading levels for structure, not styling

Don’t use header tags just to make text bigger or bold. Avoid using headings for menus, widgets or design elements; style them with CSS instead.

Example of a good heading structure

Here’s an outline for a post about content briefs. The page title is the H1, sections are H2s and subsections are H3s:

Page title: How to Write a Content Brief (Template + Examples)

  Section: What is a content brief?

  Section: What to include in a content brief

    Subsection: Search intent and target keyword

    Subsection: Outline and subheadings

    Subsection: Sources and internal links

  Section: Content brief template

  Section: Common mistakes

  Section: FAQ

Each title describes its section, the outline has no gaps, and the main title contains the primary keyword.

Common mistakes

  • No H1 or one that only says “Blog”.
  • Several H1s because the theme and the editor both add one.
  • Skipping levels, such as jumping two levels down.
  • Keyword stuffing the same phrase in every heading.
  • Headings used for design, like a bold call to action marked up as a section heading.
  • Vague headings such as “Introduction” or “More info”.

How to check your header tags

Open the page and view the source, or use your browser’s developer tools to inspect each one; it’s the easiest way to review the tags on your website. Free accessibility checkers and browser extensions can show the full heading outline of a webpage in one view. In WordPress, check which heading level your theme uses for the post title before you add headings in the editor.

How Contadu helps you write better headings

Contadu helps you plan headings that match what searchers look for:

  • Cover the right subtopics: the Content Writer shows NLP terms and entities from top-ranking pages, so your sections cover what the topic needs and the user experience stays clear.
  • Plan topics first: Content Strategy groups related keywords into clusters, so each page has one clear focus.
  • Fix live pages: the Chrome extension lets you edit live text on WordPress and Shopify pages.

Try it on your next article with a 7-day free trial.

FAQ

What is a heading tag in HTML?

It’s an HTML element that marks a title or subheading on a page. The first level is the main page title, and lower levels are subheadings of decreasing level of importance.

How many H1 tags should a page have?

Usually one. Google can handle more, but a single H1 for the main topic keeps the page clear for search engines and readers.

What is the difference between heading tags and title tags?

The title tag sits in the page’s <head> and appears in search results and the browser tab. Heading tags appear on the page itself and structure the content.

Do heading tags help SEO?

Yes, indirectly. They help Google understand your content and make pages easier to read, which supports rankings and featured snippets.

Should I put keywords in every header?

No. Use the primary keyword in the main title and related keywords where they fit. Natural, descriptive headings work better than repeated phrases.

What is an example of a header?

“<h2>Best practices</h2>” is a section header. It tells readers and search engines what the next section covers.

Can I skip heading levels?

Avoid it. Skipping a level can confuse screen reader users. Use the next level down for each subsection.

Leave a Reply

Your email address will not be published. Required fields are marked *