Goal
Ensure language changes within a page are identified.
Loading ...
Success Criterion · WCAG 3.1.2
The human language of each passage or phrase in the content can be programmatically determined except for proper names, technical terms, words of indeterminate language, and words or phrases that have become part of the vernacular of the immediately surrounding text.
Goal
Ensure language changes within a page are identified.
What to do
Mark passages, phrases, or words that are in a different language than the page default using `lang`.
Why it matters
Screen readers need language changes to pronounce correctly; braille translation also depends on accurate language metadata.
Success criterion
Summarized directly from the official Understanding document so teams can quote the requirement accurately.
The human language of each passage or phrase in the content can be programmatically determined except for proper names, technical terms, words of indeterminate language, and words or phrases that have become part of the vernacular of the immediately surrounding text.
Intent
Benefits
Why it matters
Summaries drawn from the Understanding document help you socialize impact statements with product stakeholders.
Foreign phrases may be mispronounced, causing confusion.
Users may misunderstand important instructions or examples.
Exception guidelines
Document the rationale for each exception and note which alternative support you provide.
Proper names and technical terms are exempt.
Requirement
No need to mark proper names/technical terms if pronunciation switching is not expected.
Words that have become part of surrounding vernacular are exempt.
Requirement
If it’s effectively part of the surrounding language, marking may not be required.
When a page contains content in multiple languages, mark the parts that differ from the default language (e.g., a Spanish phrase on an English page). This ensures correct pronunciation and comprehension.
Reference: All summaries and highlights originate from Understanding WCAG 3.1.2 and the W3C quick reference.
Examples
Share pass/fail snapshots to coach designers, engineers, QA, and content authors.
Pass
“My favorite word is <span lang="fr">bonjour</span>.”
Fail
Foreign phrase appears with no `lang`, causing mispronunciation.
Pass
<blockquote lang="es">…</blockquote> for a Spanish quote.
Fail
Spanish quote is read with English rules.
Evidence to keep
Capture artifacts for VPATs, procurement reviews, and regression testing.
Official resources
Keep these links handy when writing acceptance criteria or responding to audits.
Implementation checklist
Testing ideas
Related success criteria