- Success Criterion 3.1.1
- Conformance level A
PDF Document Published With No Language Metadata Set
3.1.1 — Language of Page
Scenario
Setting
A ride-hailing app's trip booking screen
What’s wrong
PDFs without the /Lang document entry.
Example
Here's a real case from a ride-hailing app's trip booking screen: PDFs without the /Lang document entry.
Why it matters
Screen-reader users who need correct pronunciation, and tools that depend on language metadata. On a ride-hailing app's trip booking screen, this barrier means they can't tell what language they're reading.
How to test
Open the PDF's document properties: if there's no /Lang entry, screen readers can't determine the correct pronunciation language.
How to fix
The <html> element must carry a valid lang attribute matching the page language, updated when the site language switches.
Outcome
Corrected, a ride-hailing app's trip booking screen now lets a visitor understand which language they're reading.
Who is affected
Screen-reader users who need correct pronunciation, and tools that depend on language metadata.
Learn more
- Understanding Understanding document (opens in a new tab)
Related scenarios
- Page Published With No Language Declared in the Code
- HTML Element Missing Its Language Attribute Entirely
- Page’s Declared Language Not Matching Its Actual Content
- Language Attribute Set to an Invalid or Malformed Value
- Language Switcher That Doesn’t Update the Page’s Lang Attribute
- Language Attribute Set on the Body Instead of the HTML Root