Skip to content
Content and brand

Heading structure (H1 to H6)

Also known as: headings · H1 · H2 · subheadings

HTML has six heading levels. MDN advises against skipping levels and generally recommends one <h1> per page that describes what the page is about. Multiple <h1> elements are technically allowed but are not considered good practice.

Why it matters

Headings make a page scannable for people and clear for machines. In its guidance on generative AI, Google mentions pages organised in paragraphs and sections with headings that provide a clear structure. Google also uses headings such as <h1> as one of the sources for the title link. For AI systems that select passages (RAG), a heading that says what the next paragraph is about helps.

What to do

  • Use one H1 that matches the subject of the title tag.
  • Split the text with H2s per subtopic; phrase them as questions where it fits.
  • Put a short, complete answer directly below the heading (AEO).
  • Choose headings for meaning, not font size; styling belongs in CSS.

Sources

  1. MDN: <h1>–<h6> HTML section heading elements
  2. Google Search Central: Optimizing your website for generative AI features on Google Search
  3. Google Search Central: Influencing your title links in search results

Related terms

← All terms

How does your site perform?

The free scan checks your technical setup and measures whether ChatGPT, Gemini, Claude and Perplexity mention you.

Start free scan