Back to Blog
DOM Forensics 5 min readJun 16, 2026
Part 9 of 10DOM Forensics series

Heading Hierarchy and Semantic Chunk Boundaries

Heading tags are not just visual formatting — they are chunk boundary signals and topical hierarchy declarations that AI extraction pipelines use to structure the content they retrieve.

AI extraction pipelines use heading tags as primary chunk boundary signals. When the extractor encounters an H2 or H3, it treats it as the start of a new semantic unit. The heading becomes the context label for the chunk that follows it. Everything between one heading and the next is treated as a single semantic unit covering the topic named in the heading.

NexisHub turns these technical checks into a 90-day AI visibility roadmap, including heading hierarchy, crawlability, structured data, and citation-readiness milestones.

Why Heading Hierarchy Matters for Chunking

A correct heading hierarchy (H1 → H2 → H3, with each level representing a sub-topic of the level above) produces a clean topical hierarchy in the extracted chunks: one primary topic per H2 section, with sub-topics per H3. This hierarchy tells the AI system not just what each chunk is about, but how the chunks relate to each other in the topic structure of the page.

Common Heading Hierarchy Failures

  • Skipped heading levels (H1 → H3, skipping H2) — breaks the topical hierarchy and confuses extraction about sub-topic relationships
  • Multiple H1s — creates ambiguity about the page's primary topic claim
  • Headings used for styling, not structure — an H3 used to make text bold creates a false chunk boundary in a topic context where no topic change exists
  • Generic heading text ("Introduction," "Overview," "More Information") — tells the extraction pipeline nothing about what the following chunk contains
  • Missing heading text (empty H2 tags with styled content created by CSS) — creates blank chunk labels

Every H2 and H3 should describe the entity, topic, or question it introduces — not tease it. "How Machine Trust Score Is Computed" is an extraction-ready heading. "The Answer Might Surprise You" is not — the chunk label becomes meaningless noise.

Heading Quality in SiteNexis Analysis

The Machine Readability module analyses heading hierarchy as one of its seven extraction pipeline stages. It checks: heading level sequence for each page, proportion of headings with generic vs descriptive text, and alignment between heading declarations and the content that follows (does the H2 "Entity Intelligence" section actually contain entity intelligence content, or has it drifted to cover unrelated topics?).

Tags: heading hierarchy chunk boundaries semantic HTML DOM structure