In short
Each type of content has its HTML element: <h2> for a section heading, <p> for a paragraph, <blockquote> for a quotation, <time> for a date, <figure> and <figcaption> for a captioned illustration, <code> for code, <dl> for definitions. The check consists of finding content formatted “by eye” (a large bold paragraph posing as a heading, hand-typed dashes posing as a list) and marking it up with the right element. Expected result: the visible structure of the page is reproduced exactly in the code.
Why it matters
The browser, the screen reader, the crawler and the language model have no access to your intent, only to the markup. A <p class="gros-gras"> looks like a heading to the eye, but to any program it is a paragraph: it does not appear in the screen reader's list of headings, it delimits no section, and the tool that splits the page into passages for a generative engine does not know where the next topic begins.
Microsoft Bing describes HTML headings as what signals to its AI systems where one idea ends and the next begins, and recommends lists and tables to break information into reusable segments. Google relies on HTML to understand the page, without documenting any ranking bonus per element.
The right elements also bring free behavior: <details> opens and closes without a script and stays readable by crawlers, <time datetime> provides a machine-readable date, <blockquote cite> indicates the source of a quotation, <abbr> spells out an abbreviation.
What it improves
- Accessibility Navigation by headings (the method screen reader users rely on most), correct announcement of quotations, lists and code. WCAG criterion 1.3.1 and RGAA (French accessibility framework) criteria 9.1 and 9.3.
- Chunking for generative engines Sections delimited by real headings, lists and tables that AI systems can reuse cleanly. An indirect effect, with no guarantee of citation.
- Search snippets Well-isolated answers (a definition in a paragraph under a question heading, steps in an ordered list) are easier to pick up. No format guarantees a snippet.
- Editorial consistency Styling comes from the theme, with no more makeshift formatting page by page.
How to check
1. Find fake headings. In the developer tools console:
console.table([...document.querySelectorAll('main p, main div, main span')]
.filter((el) => el.children.length === 0 && el.textContent.trim().length > 0 && el.textContent.trim().length < 90)
.filter((el) => {
const style = getComputedStyle(el);
return parseFloat(style.fontSize) >= 20 || Number(style.fontWeight) >= 700;
})
.map((el) => ({ balise: el.tagName.toLowerCase(), taille: getComputedStyle(el).fontSize, texte: el.textContent.trim() })));
Each row that looks like a section title is a heading to mark up as <h2> or <h3>.
2. Find fake lists and line breaks. Look in the HTML for paragraphs that start with a dash, a bullet or a number, and for sequences of <br>:
console.table([...document.querySelectorAll('main p')]
.filter((p) => /^\s*([-–•*]|\d+[.)])\s/.test(p.textContent) || p.querySelectorAll('br').length >= 2)
.map((p) => ({ debut: p.textContent.trim().slice(0, 70), sauts: p.querySelectorAll('br').length })));
3. Check the heading outline. The Structure panel of the WAVE extension or a screen reader's list of headings (Insert + F7 with NVDA) shows the hierarchy. It should reflect the table of contents you would write by hand, with no unjustified skipped level.
4. Validate the HTML. The W3C Nu Html Checker flags forbidden nesting (<div> inside a <p>, <li> outside a list, <figcaption> outside a <figure>).
How to implement
Before you start
A mapping table to share with writers and front-end developers:
| Content | Element | Avoid |
|---|---|---|
| Section heading | <h2> to <h6>, in order |
<p><strong>, <div class="titre"> |
| Paragraph | <p> |
bare text in a <div>, <br><br> |
| Enumeration | <ul> or <ol> + <li> |
typed dashes, <br> |
| Term / value pairs, glossary | <dl>, <dt>, <dd> |
layout table |
| Long quotation | <blockquote cite="URL"> + source in <figcaption> |
italics alone |
| Short quotation within a sentence | <q> |
decorative quotation marks as an image |
| Title of a cited work | <cite> |
<i> |
| Captioned image or chart | <figure> + <figcaption> |
caption in a separate <p> |
| Date, time, duration | <time datetime="2026-11-20"> |
date as plain text in a <span> |
| Contact details for the author or the site | <address> |
any postal address in the text |
| Abbreviation | <abbr title="…"> on first occurrence |
nothing |
| Strong importance, emphasis | <strong>, <em> |
<b>, <i> to convey meaning |
| Code, command, key | <code>, <pre>, <kbd> |
monospace font on a <span> |
| Collapsible content | <details> + <summary> |
hidden <div> opened by a script |
| Passage highlighted in relation to a search | <mark> |
colored <span> |
Example of a well-marked-up passage:
<section aria-labelledby="definition-lcp">
<h2 id="definition-lcp">What is LCP?</h2>
<p><abbr title="Largest Contentful Paint">LCP</abbr> measures how long it takes to display the largest visible element.</p>
<figure>
<img src="/images/lcp-seuils.png" alt="LCP thresholds: good under 2.5 s, needs improvement up to 4 s, poor beyond" width="800" height="300">
<figcaption>Thresholds published by Google, updated on <time datetime="2026-11-20">20 November 2026</time>.</figcaption>
</figure>
<figure>
<blockquote cite="https://web.dev/articles/lcp">
<p>Short quotation from the official documentation.</p>
</blockquote>
<figcaption>Source: <cite>web.dev, Largest Contentful Paint</cite></figcaption>
</figure>
<details>
<summary>How do you measure it from the command line?</summary>
<pre><code>npx lighthouse https://example.com --only-categories=performance</code></pre>
</details>
</section>
Good to know: the content of a closed
<details>element is present in the HTML, and therefore readable by crawlers, unlike content injected only on click. See make content accessible without user interaction (opens in a new tab).
The heading hierarchy has its own guide: structure H2/H3 headings (opens in a new tab). So do tables and lists: structure tables and lists with native elements (opens in a new tab).
WordPress
Versions WordPress 6.3 and later (Details block), verified up to 7.1.
The block editor outputs the right element as long as you pick the right block:
| Need | Block | HTML output |
|---|---|---|
| Heading | Heading (choose H2, H3… in the toolbar) | <h2>… |
| List | List (bulleted or numbered) | <ul>, <ol> |
| Quotation | Quote or Pullquote | <blockquote>, <figure> |
| Collapsible | Details | <details>, <summary> |
| Code | Code or Preformatted | <pre><code>, <pre> |
| Captioned image | Image with caption | <figure>, <figcaption> |
Checkpoints:
- Do not turn a paragraph into a heading by increasing its size in the Typography panel: convert it to a Heading block (
Transform to > Heading). - Content pasted from Word or Google Docs: check that headings have become Heading blocks and lists have become List blocks, not bulleted paragraphs.
- Classic theme or classic editor: the “Paragraph / Heading 2 / Heading 3” drop-down in the toolbar plays the same role.
- Page builders: heading widgets have an HTML tag setting; do not leave every heading as a
<div>or every heading as an<h2>.
Shopify
Versions Shopify admin and Online Store 2.0 themes, November 2026.
- Product descriptions, pages and blog posts: the admin's rich text editor offers heading levels and lists. For finer control, open the HTML view (the editor's
<>button) and fix the<p><strong>elements acting as headings. - Theme sections: in the
sections/*.liquidfiles, check that section headings (section.settings.heading) are rendered in an<h2>and not in a<div class="h2">. The styling can stay that of the class; the element must change:
<h2 class="h1">{{ section.settings.heading | escape }}</h2>
Wix
Versions Wix Editor and Wix Studio, November 2026.
In the editor, the text theme (Heading 1 to 6, Paragraph) determines both the style and, by default, the HTML tag. Choose the level according to the structure, then adjust the appearance if needed. Recent versions of the editor let you set a text element's HTML tag independently of its style in its SEO or accessibility settings; the labels vary by editor.
Squarespace
Versions Squarespace 7.1, November 2026.
In a Text block, the format menu offers Heading 1 to 4, Paragraph 1 to 3, quote and lists. “Paragraph 1, 2, 3” are only sizes: a section title must use a “Heading”. Quote blocks output a <blockquote>.
Webflow
Versions Webflow Designer, all plans, November 2026.
Use the Heading element and choose H1 to H6 in the Settings panel, the Paragraph element, the List element and the Blockquote element. In a CMS Rich Text field, the styles in the formatting bar create the right elements. For an element missing from the palette (<time>, <details>, <dl>), the custom element lets you type the tag name.
Laravel
Versions Laravel 10 to 13.
For content written in Markdown, convert it with Str::markdown() (CommonMark): headings, lists, quotations and code blocks become the right elements. In Blade views, output dates with <time>:
<time datetime="{{ $article->published_at->toDateString() }}">
{{ $article->published_at->translatedFormat('j F Y') }}
</time>
With a rich text editor in the back office (Trix, TipTap), limit the buttons offered to the useful elements and clean up pasted HTML.
Next.js
Versions Next.js 15 and 16 (App Router, @next/mdx).
With MDX or a headless CMS, map each node type to the right element, keeping the heading levels. With @next/mdx and the App Router, the mdx-components.tsx file is required, at the project root (or in src/):
// mdx-components.tsx
import type { MDXComponents } from 'mdx/types';
const components = {
h2: (props) => <h2 className="titre-section" {...props} />,
blockquote: (props) => <blockquote className="citation" {...props} />,
} satisfies MDXComponents;
export function useMDXComponents(): MDXComponents {
return components;
}
For a CMS that returns structured rich text (Portable Text, Contentful Rich Text), check the rendering component: a heading-2 node must produce an <h2>, not a styled <p>.
Astro
Versions Astro 5 and 6.
The Markdown and MDX files of your content collections, declared in src/content.config.ts with the glob() loader (implicit reading of src/content/, deprecated in Astro 5, was removed in Astro 6), are converted into standard HTML elements. For the dates in your collections, render <time datetime={date.toISOString()}> in the article layout.
Common mistakes
- Choosing the heading level for its size: the level expresses the hierarchy; size is set in CSS.
- Putting a whole paragraph in
<strong>to make it stand out: the emphasis loses its meaning, and it is still not a heading. <blockquote>to indent text that is not a quotation.<br>elements for spacing: spacing belongs in CSS; multiple line breaks disrupt text-to-speech reading.- Headings inside interactive elements: an
<h3>inside an accordion<button>is invalid; do the reverse, the button inside the heading, or use<details>. - Inventing an update date in a
<time>element: the element must reflect a real change. See eliminate fictitious update dates (opens in a new tab).
Frequently asked questions
Should I use strong or b to make a word bold?
Use strong when the passage is genuinely important to the meaning, and em for emphasis that changes the intonation. The b and i elements remain valid for styling with no particular importance, such as a technical term or a foreign word. Neither has a documented ranking effect. What matters is not to replace a heading with a bold sentence: a real heading must use h2 to h6.
Is the content of a closed details element indexed?
Yes, the content of a closed details element is present in the page's HTML: Google and crawlers that read HTML can access it, even though it is not displayed by default. That is the big difference from content loaded by JavaScript only on click, which crawlers do not see. Still, keep essential information in the visible text, especially the page's main answer.
Does the time element help Google understand an article's date?
The time element provides a machine-readable date through its datetime attribute, and Google lists visible dates and structured data among the signals it uses to date a page. It is not enough on its own: display the publication and update dates visibly, fill in datePublished and dateModified in the structured data, and never change a date without a real change to the content.
Do semantic HTML elements help ChatGPT or Perplexity cite a page?
No vendor publishes a rule linking an HTML element to a citation. However, Microsoft Bing recommends HTML headings, lists and tables so that its AI systems can identify sections and reuse information cleanly. Accurate markup makes your passages easier to extract and attribute, which increases the chances of being picked up, without ever guaranteeing it.
Resources
- MDN: HTML elements referencedeveloper.mozilla.org
- MDN: the time elementdeveloper.mozilla.org
- MDN: the figure elementdeveloper.mozilla.org
- MDN: the details elementdeveloper.mozilla.org
- W3C: Understanding Success Criterion 1.3.1, Info and Relationshipsw3.org
- RGAA 4.1.2 (French accessibility framework): criteria 9.1 to 9.4accessibilite.numerique.gouv.fr
- Microsoft Bing: optimizing your content for inclusion in AI search answersabout.ads.microsoft.com
Updated on
Topic checklist (PDF)