# Heading content not wrapped in semantic container element

> The page has h2 or h3 headings but no content is wrapped in semantic HTML container elements, <article>, <section>, or <aside>. Vector-based AI...

Source: https://seocode.io/checks/geo-passage-containment

[All checks](https://seocode.io/checks) / AI search (GEO)

The page has h2 or h3 headings but no content is wrapped in semantic HTML container elements, `<article>`, `<section>`, or `<aside>`.

Info `geo-passage-containment`

In SEOCode's checks since 13 Sep 2026

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Read the docs](https://seocode.io/docs)

## Why this matters.

The page has h2 or h3 headings but no content is wrapped in semantic HTML container elements, `<article>`, `<section>`, or `<aside>`. Vector-based AI retrieval systems chunk content into passages for embedding and retrieval. Semantic HTML elements are the primary signal used to cleanly isolate passage boundaries. Without semantic containers, a heading and its content may be split across chunk boundaries or merged with unrelated content, reducing the relevance of the retrieved passage for citation. This is an info-level finding, the absence of semantic containers is often a pre-existing structural issue rather than a PR regression.

Runs on `.html` `.jsx` `.tsx` `.vue` `.svelte` `.astro` · Advisory checks point at an improvement. They never block a merge.

## How to resolve it.

Wrap each major content section in a `<section>` or `<article>` element. Each section should contain one h2 or h3 heading and all the content that belongs to it. Example: `<section>``<h2>How it works</h2>``<p>SEOCode runs on every pull request...</p>``</section>`. Use `<article>` for self-contained content (blog posts, documentation pages, news articles). Use `<section>` for thematic groupings within a page. Use `<aside>` for supplementary content (sidebars, callout boxes, related links). The goal is one semantic container per logical topic, not one per paragraph.

**SEOCode writes this fix for you**

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.

## Where this comes from.

- [01 · Sectiondeveloper.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section)

- [02 · Articledeveloper.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article)

- [03 · Ai Optimization Guidedevelopers.google.com](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide)

Using a framework? [Next.js](https://seocode.io/nextjs-seo) · [Astro](https://seocode.io/astro-seo) · [SvelteKit](https://seocode.io/sveltekit-seo) · [Nuxt](https://seocode.io/nuxt-seo)

## Related checks.

What decides whether ChatGPT, Perplexity and AI Overviews can read and cite a page.

- [01 · robots.txt blocks AI search crawlers Critical robots.txt is blocking one or more AI crawlers: GPTBot (OpenAI's training crawler), PerplexityBot (Perplexity), ClaudeBot (Anthropic) or Google-Extended (Google Gemini; AI Overviews use Googlebot).](https://seocode.io/checks/geo-robots-ai-agents)

- [02 · JSON-LD entity missing @id anchor (flat graph) Critical An Organization, Person, Product, Place, or LocalBusiness entity in JSON-LD is missing an @id property.](https://seocode.io/checks/schema-nested-graph)

- [03 · Organization or Person schema missing sameAs links Warning An Organization or Person entity in JSON-LD is missing a sameAs array linking to authoritative external sources.](https://seocode.io/checks/schema-entity-sameas)

- [04 · Critical metadata only in client-side JavaScript (useEffect, onMount or onMounted) Critical Critical SEO metadata, page title, meta description, og:image, or canonical URL, is being set inside a useEffect hook (React), onMount (Svelte) or onMounted (Vue), or inside Nuxt's <ClientOnly>, meaning it only exists after JavaScript executes on the client.](https://seocode.io/checks/geo-ssr-hydration)

- [05 · FAQPage schema present but no matching Q&A HTML structure Warning The page includes FAQPage JSON-LD schema markup but has no visible Q&A structure in the HTML, no question-like headings (h2/h3 ending in '?') and no accordion or FAQ component class names.](https://seocode.io/checks/schema-faqpage-completeness)

- [06 · Heading section opens with narrative preamble (not BLUF) Info A major heading section (h2 or h3) opens with narrative preamble rather than a direct answer.](https://seocode.io/checks/geo-bluf-structure)

[All 10 ai search (geo) checks](https://seocode.io/checks#geo)

## Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

- [Add to GitHub](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit?from=checks-cta)

Free for public repositories · no credit card
