Tactics

Heading structure for SEO and AI extraction

By Abhijay Tondak, Founder · Updated June 25, 2026 · 5 min read

The short answer

Heading structure for SEO and AI means one clear H1 that states the page's topic, followed by descriptive H2s and H3s in logical nesting order. It matters because both search crawlers and AI answer engines use headings to map a page's structure and to locate the passage that answers a query - so a heading phrased as the question gives the engine a direct route to your answer.

Key takeaways

  • Use exactly one H1 that states what the page is about.
  • Phrase H2s as the questions readers ask; the answer goes in the paragraph right below.
  • Never skip levels (H2 to H4) - logical nesting is a parsing signal.
  • Headings are navigation, not decoration; don't style normal text as a heading.
  • Front-load the keyword or entity in the heading text.

Why headings are a machine-readable map

A heading hierarchy is the outline of your page expressed in markup. Crawlers build a structural model from it, accessibility tools navigate by it, and AI answer engines use it to segment a page into passages they can score against a query. When your headings are descriptive and well-ordered, you are handing every one of those systems a table of contents.

When they are vague or out of order, the opposite happens. A heading like 'Going deeper' tells a machine nothing, and a jump from H2 to H4 breaks the implied nesting. The engine has to guess at structure, which makes it harder for your answer to be located and lifted.

Phrase headings as the question

The single highest-leverage move is to write H2s in the words people actually search and ask. If a buyer asks an AI 'how much does X cost', a section titled 'How much does X cost?' with the answer in the first sentence below it is a near-perfect match for retrieval. The heading and the query line up, and the answer is exactly where the engine expects it.

This also improves the page for people. Question-shaped headings let a reader scan to the exact section they need, which is the same scannability that drives featured snippets and AI extraction.

Rules for a clean hierarchy

A few mechanical rules keep the structure parseable.

  • One H1 per page, stating the topic - usually matching the title.
  • H2s for the main questions or subtopics; H3s for sub-points under an H2.
  • Never skip a level: don't go H2 straight to H4.
  • Keep headings short and specific; put the keyword or entity first.
  • Use headings for structure only - don't bold a paragraph and call it a heading.

Frequently asked questions

Can I have more than one H1?

Stick to one. HTML5 technically allows multiple H1s inside sectioning elements, but a single H1 that names the page topic is the clearest signal for both search and AI parsers, and it avoids ambiguity about what the page is primarily about.

Do headings need to contain keywords?

They should contain the natural language of the question, which usually includes the keyword or entity. Front-load it, but don't stuff - a heading written for a human who is scanning is also the heading an engine parses best.

Does the order of headings affect AI citations?

Yes. Logical nesting helps an engine understand which passage belongs to which question, so your answer is matched to the right query. Out-of-order or skipped levels force the engine to guess and reduce the odds your passage is retrieved cleanly.

Put this into practice — free.

Get your free AI-visibility audit and see where engines find you today.

Free audit · public pages only · no credit card

More from this topic

Keep building your expertise with related GEO content in the same cluster.

Keep reading