Level: Optimize

Semantic HTML, accessibility, SEO and AI: what systems actually read

A heading, table or caveat may change shape during extraction. This guide compares HTML relationships with what five extractors and two Markdown converters return, without confusing that result with accessibility in use, ranking or AI citation.
Estimated reading time:
Paper model of a semantic HTML page: header, main and footer, with headings, links and landmarks.

HTML · accessibility · SEO · AI agents

The same page may be received as HTML, transformed into a DOM, exposed in an accessibility tree or reduced to text. These representations are not interchangeable.

  • Established Native HTML carries roles and relationships used by assistive technology.
  • Tested Twelve controlled test documents (fixtures), eight archived real Edikka pages and one JavaScript scenario, with seven tools in protocol v1.2.0 and its addendum.
  • Observed Relationships are preserved, flattened or dropped depending on the tool and format.
  • Not measured Full conformance, ranking, model understanding and citation likelihood.

Instrument record — Semantic HTML extraction protocolv1.2.1 · CC BY 4.0

Semantic HTML extraction protocol

12 controlled documents, seven tools, archived outputs and a reproducible method.

Explore the archived results

Semantic HTML: compare what tools preserve

Compare two variants of a heading, a table or an essential caveat across seven tools. Inspect the outputs, corrected observations and their source files.

These links open in a new tab.

Archived extractions, no live test. Package 1.2.1 · protocol 1.2.0 · revised evaluation 2.0.0. The demo has its own version and code licence.

Preview, files and citation

Interpretation limit. These observations measure neither accessibility conformance nor indexing, ranking or citation. Observed instability in one newspaper4k output is retained.

Read the reproduction instructions

Essential answer

HTML makes relationships explicit; each system then decides what to preserve.

Does accessibility improve SEO? Not as a magic factor or ranking guarantee. It encourages relationships that are more robust for people and browsers; some tools may then preserve them better, but that effect needs a separate test. A native heading, a correctly associated table or a well-named link is not an “AI language”.

We therefore separated two questions. Standards answer which relationship HTML expresses. Observation answers what five extractors and two Markdown converters produce on twelve controlled test documents. A satisfactory output proves neither better model understanding, an SEO gain nor a higher probability of citation.

Decision

Choose the native HTML that correctly describes the content for people and browsers, then test the extraction formats actually used as a separate task.

Several branches, not one universal pipeline

What a system may receive before producing an answer.

Depending on the tool, the starting point may be HTTP HTML, the browser DOM, an accessibility representation, a visual capture or passages already selected by a search system. No single branch describes every engine or assistant.

Representations that must remain distinct
Representation or stepWhat it containsPossible checkLimit
Received HTMLServer response, metadata and links.Archived HTTP response and hash.Does not show later browser mutations.
DOMThe tree constructed and possibly modified client-side.Browser inspection, rendered order and content.It is neither the screen nor the accessibility tree.
Accessibility treeRoles, names, states and relationships exposed by the browser.Accessibility inspector or API, followed by a suitable assistive-technology test.A snapshot is not a screen-reader user test.
ExtractionText, simplified HTML, XML or Markdown retained by a tool.Archived native output, options and version.Depends on algorithm, thresholds and format.
Retrieval and selectionDocuments or passages selected for a query.A separate measurement protocol where access permits.Good local extraction does not prove selection.
Generation and citationThe generated answer and any displayed sources.Repeated, dated observations over a defined scope.A provider’s internal operation cannot be inferred from HTML alone.

What standards can establish

Test the relationship before testing its extraction.

Semantic verification matrix
ElementExplicit relationshipWCAG 2.2 / French RGAA 4.1.2 referencesAccessibility testExtraction questionLimit
h1–h6Section level and label.WCAG 1.3.1 (A), 2.4.6 (AA); RGAA 9.1.Navigate and review the heading outline.Do level and text remain identifiable?One H1 is an editorial choice here, not a ranking guarantee.
main, nav, asideDocument regions according to context and name.WCAG 1.3.1 (A), 2.4.1 (A); RGAA 9.2, 12.6 and 12.7.Inspect the landmarks actually exposed.Are main and complementary content still separate?aside is not the automatic container for every essential caveat.
a, button, labelDestination, action and field name.WCAG 2.4.4 (A), 3.3.2 (A), 4.1.2 (A); RGAA 6.1, 11.1 and 11.9.Check name, role, state, focus and visible match.Do label and destination stay together?ARIA complements some components; it does not replace suitable native HTML.
table, th, scopeHeader-to-cell associations.WCAG 1.3.1 (A); RGAA 5.4–5.7 depending on complexity.Read a value with its row and column headers.Do relationships survive simplified HTML, XML or Markdown?A table flattened by an extractor is not necessarily inaccessible in the browser.
langLanguage for pronunciation and suitable processing.WCAG 3.1.1 (A), 3.1.2 (AA); RGAA 8.3 and 8.7.Check page language and language changes.Is language carried as metadata?Google does not use lang to detect language; its algorithms determine it.

Protocol v1.2.0

Compare constant text without injecting the expected answer.

The protocol contains three families, two variants and two languages: 12 standalone HTML documents. Translations are not counted as independent observations. Within each pair, visible text, order, classes, identifiers and surrounding noise are identical; only the declared treatment changes.

Family A compares a real h2 with an equally styled div. Family B compares th cells with scope against td cells. Family C compares an essential caveat in a paragraph against the same caveat in an aside unsuitable for that role. Data are synthetic. Outputs come from the run dated 20 September 2026.

Archived bytes are passed to the extractors unchanged. For Mozilla Readability, JSDOM builds the document with runScripts: "outside-only" and no resource loader: fixture scripts do not run, remote resources are not fetched and metadata are not removed. This follows the documented Mozilla Readability usage. The runner also checks visible-text equality and rejects HTML differences outside the treatment. Five content/readability tools and two Markdown converters run twice on identical bytes; content selection and format conversion remain separate tool classes.

What is isolated

The markup choice in these fixtures—not editorial rewriting, a search engine or a commercial assistant.

Outputs actually obtained

Preservation, flattening and removal across seven tools.

Package 1.2.1 · machine summary revised on 21 September 2026. The corrected JSON summary separates row- and column-header relationships for all seven tools, with the source field, an excerpt and its hash. The first aggregate mistook an XML caption marked role="head" for column headers. Here Trafilatura retains the columns of the th variant, not the td variant, and loses the explicit row-header relationship. Markdownify emits a Markdown header row for both variants; this does not establish that the td source had that semantic relationship. With html2text, the caption is joined to the first label, so the evaluator does not validate the exact association. The original aggregate and raw outputs remain available. This revised reading adds no extractor execution. The four counter-tests, deliberately altered outputs used to check that the evaluator rejects them, were previously declared without execution in the runner. They now run in both languages after a valid positive control; the same JSON records all eight verdicts.

v1.2.0 run results — the same observations in French and English
FamilyMozilla Readability 0.6.0Trafilatura 2.2.0Five other toolsPermitted interpretation
HeadingThe h2 remains a heading; the div keeps only its text.The h2 becomes <head rend="h2">; the div becomes a paragraph.readability-lxml, newspaper4k, html2text and markdownify also distinguish the variants; jusText selects no text from these short fixtures.Six tools distinguish the explicit relationship from plain text here. This does not generalise to other pages or options.
Tableth and scope are retained. The td variant has no explicit headers.Column headers remain, while the explicit row-header relationship is lost.readability-lxml keeps th/scope; newspaper4k flattens the table. Both converters emit a Markdown table for both variants without recreating semantics absent from td.Values alone are insufficient: associations and tool class must be inspected.
CaveatThe paragraph caveat is retained; the same caveat in the aside is removed.The XML and text outputs show the same result.newspaper4k also drops the aside; readability-lxml and both converters keep its text; jusText selects neither case.Some tools lose essential information in these fixtures. This is not a recommendation to avoid every aside.

Proof 1 — an explicit heading becomes plain text

Actual inputs and outputs

With identical text, Readability returns <h2>Measurement conditions</h2> for the h2 variant but <p>Measurement conditions</p> for the div. Trafilatura returns <head rend="h2"> and <p> respectively. The heading relationship is not guessed from appearance.

<h2 class="case-marker">Measurement conditions</h2>
<div class="case-marker">Measurement conditions</div>

Proof 2 — values survive, but not every association

Trafilatura output

All four values remain and column headers carry role="head". “Response time”, supplied as th scope="row", is emitted as an ordinary cell. The correction is to retain real headers and test relationships, not merely number presence.

<cell role="head">Indicator</cell> …
<cell>Response time</cell>
<cell>seconds</cell> <cell>May 2026</cell> <cell>1.8</cell>

Proof 3 — the claim remains while its caveat disappears

Observed boundary case

Readability, Trafilatura and newspaper4k keep “The observed rate is 42%…” but remove the caveat when it sits in an aside. Yet HTML defines aside as tangentially related content. An essential limitation belongs in the flow of the claim it constrains.

<p>The observed rate is 42%…</p>
<aside class="case-caveat">Essential caveat: synthetic example…</aside>

All six pairs passed visible-text equality and bounded-difference checks. All seven tools ran twice on each of the 12 documents; jusText selected no content from these short fixtures, archived as no_output rather than a crash. The twelve combined output hashes match their replays. The 2.0.0 and v1.1 archives remain available and were not overwritten.

Read the instructions · open the v1.2 JSON summary · read the observations · verify manifest and hashes · compare the 2.0.0 archive

Ecological check on eight real pages

A separate addendum runs the seven tools twice on eight Edikka production snapshots archived on 11 September 2026: two articles, contact and library pages in French and English. All eight full HTML inputs and raw outputs are included. This single-site convenience sample shows that the program runs beyond the fixtures; it is not Web-representative, causal or a tool ranking. One replay also exposed newspaper4k instability on an English page, retained in the output rather than hidden.

Open the real-page results · inspect the observed instability witness

Proportionate correction

Use the right element, then add ARIA only when necessary.

Correction starts with the content’s real function. A heading is a heading; tabular data have headers; an essential caveat stays in the flow of the claim it limits. The goal is not to optimise one extractor’s output at the expense of people.

Agent claims also require naming the tool. The experimental Lighthouse Agentic Browsing category, available with Chrome 150 or later, uses a subset of accessibility-tree checks including names, roles, relationships, visibility and stability. It reports a ratio of checks, not a weighted 0–100 score. WebMCP features have separate prerequisites and are not needed to validate this guide.

JavaScript and accessibility tree actually observed

In Google Chrome 153 driven by Playwright 1.63, Tab focuses the native button named “Afficher la procédure / Show procedure”. Enter executes the script: aria-expanded changes from false to true, the controlled section becomes visible and the status region announces “Procédure affichée / Procedure shown”. The result archives source HTML, DOM before/after and accessibility nodes before/after.

<button aria-controls="procedure" aria-expanded="false">
  Afficher la procédure / Show procedure
</button>
<p role="status" aria-live="polite">Procédure masquée / Procedure hidden</p>

Open the JavaScript fixture · inspect the raw result. This scripted check observes role, name, state, focus and one local action outcome. It is not an autonomous-agent benchmark, a screen-reader user test, or evidence of ranking or citation. ARIA snapshots are documented by Playwright; statements about OpenAI products remain bounded to OpenAI’s publisher documentation.

Short procedure

Test your page without turning the test into certification.

  1. Archive the input.

    Keep URL, date, HTTP response and source-HTML hash, without cookies or private data.

  2. Inspect representations separately.

    Compare HTML, rendered DOM and accessibility tree; record browser, version and viewport.

  3. Run extractors with fixed options.

    Keep native structured and text output, including failures and equal results.

  4. Evaluate relationships.

    Link each verdict to an excerpt: heading and level, value and headers, claim and caveat, source and passage.

  5. Conclude within the observed scope.

    Distinguish preserved, explicit, ambiguous, absent, error and not applicable. Replay after correction.

Rerun v1.2 outside the repository

Download the standalone bundle, copy it to a temporary directory and install the pinned versions. It contains the runner, both Python adapters, Python requirements and the Node lockfile.

cd /tmp/semantic-html-v1-2
npm ci --ignore-scripts
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements-v1.2.txt
SEMANTIC_PROTOCOL_VERSION=1.2.0 \
SEMANTIC_OUTPUT_ROOT="$PWD" \
TRAFILATURA_PYTHON="$PWD/.venv/bin/python" \
MULTITOOL_PYTHON="$PWD/.venv/bin/python" \
node run.mjs

SEO and AI scope

This test measures neither selection, ranking nor citation.

Search systems may crawl, render, index and select passages through their own systems. Google says its AI features rely on existing SEO fundamentals and require no “special AI” markup. Its localized-version documentation asks for separate URLs and reciprocal annotations; it says its algorithms determine language and do not use lang or hreflang for that detection.

This experiment replaces neither an accessibility review nor a measurement of AI visibility and citations. For the adjacent checks, see the RGAA, WCAG and EAA comparison, Lighthouse 100 limits, accessible forms, real accessibility audits and the accessibility observatory.

Murielle Germain’s third RedactionSEO article compares four extractors and two Markdown converters on semantic tables and tables rebuilt with div. Its tool coverage is broader than Edikka v1.1 and its finding is stronger for those inputs: readability-lxml and newspaper4k lose values. Edikka v1.2 now runs seven tools, but does not claim to reproduce that setup: our non-semantic variant retains table and replaces th with td. Edikka’s distinct contribution covers the heading-versus-text distinction, row-header relationships, removal of an essential caveat, bilingual fixtures, hashes and a true second execution. RedactionSEO’s “Readability” tool is readability-lxml, not Mozilla Readability used here.

Sources, versions and challenge

Reproduce the test and return to primary documents.

Suggested citation: Bertrand Morel, “Semantic HTML, accessibility, SEO and AI: what systems actually read”, Edikka, protocol v1.2.0, 20 September 2026, this page’s URL. The corrected dataset package 1.2.1 is archived on Zenodo under DOI 10.5281/zenodo.22867103 (21 September 2026). This deposit provides a persistent reference; it does not constitute peer review. Original Edikka-authored material in the package is reusable under the CC BY 4.0 licence; third-party components retain their own terms.

Conclusion

Semantic HTML gives people and tools verifiable relationships. Extraction may preserve, reinterpret or lose them: the defensible response is to archive the output, name the limit and run the test again.

To check the evidence behind a recommendation before applying this guide, consult the SEO claims register.

Prompt, full source and citation

Explore this analysis.

Choose a task, review the prompt and take it to your AI.

Semantic HTML, accessibility, SEO and AI: what systems actually readUpdated September 21, 2026

Read the full prompt

Your inputs stay in this browser until you paste them into your AI. No analysis runs here.

Your AI cannot read the link?

Copy the full source or download the document, then attach it to your conversation.

Download Markdown

Vision Edikka

A reliable page must be readable, usable and verifiable.

Our standard: structure that serves people, consistent components and evidence whose limits anyone can examine.

Use

Start with the person

Headings, links, tables and actions must remain understandable with a keyboard and assistive technology. A successful extraction alone cannot establish that.

Consistency

Fix the shared component

The same editorial structure should retain the same landmarks, alignment and spacing across articles, in both French and English.

Evidence

Make the result verifiable

Preserve inputs, versions, outputs and unfavourable findings. Separate what was observed from what still needs testing.

Our commitment

Connect reading quality to observable evidence, then maintain that standard in every article.

Article FAQ

Frequently asked questions

Additional answers to clarify the key points covered in this article.

6 selected questions View all FAQs

Does semantic HTML guarantee that AI understands or cites a page?

No. Semantic HTML makes roles and relationships explicit. An extractor may preserve, flatten or reconstruct them; document selection, answer generation and displayed citations depend on other systems. These tests measure neither ranking nor citation.

How do DOM, accessibility tree and extracted text differ?

The DOM is the tree constructed by the browser. The accessibility tree exposes roles, names and states to assistive technology. Extracted text is a serialization: a written representation produced under a tool’s own rules. None of these outputs substitutes for the other two.

Why can a correct table be flattened during extraction?

A text or Markdown format may retain values without every attribute that associates headers and cells. Relationships must be checked in structured output. Extraction loss does not demonstrate that the browser table was inaccessible.

Can an extractor ignore ARIA or an HTML element?

Yes. Each extractor defines which elements, attributes, thresholds and heuristics it keeps. ARIA primarily targets accessibility API exposure; it is not a universal instruction for extractors or models.

Do these tests replace an accessibility audit or AI visibility measurement?

No. They observe twelve synthetic documents with five extractors and two Markdown converters at pinned versions. An accessibility audit examines broader criteria and journeys; visibility measurement separately observes retrieval, answers and citations.

How should a page be retested after a semantic fix?

Archive received HTML, inspect DOM and accessibility tree separately, rerun extractors with the same versions and options, then compare specific relationships. Any difference should remain attributable to the fix.

Web solutions designed to perform

Strategy. Design. Code. SEO. AI. Clearer, faster, and more compelling digital experiences.

Related articles to continue the analysis