Matan · WCAG · Perceivable
Page language
WCAG 3.1.1: the default human language of the page must be programmatically determined.
Pass condition in our engine: <html> has a lang attribute.
1. Problem description
Without lang on <html>, screen readers may use the wrong voice and pronunciation. Translation tools and crawlers also guess. A wrong lang (en on a Polish page) is almost as bad as a missing one.
2. Most common causes
- The HTML boilerplate omitted lang.
- A multi-language CMS forgot to set it per locale.
- lang is set only via JavaScript.
3. How to fix it
- Add lang="en", lang="pl", or the correct BCP 47 code on <html>.
- Match the primary language of the content.
- Set lang on inner elements only for genuine mixed-language passages.
Test this check
We fetch only this URL (plus robots.txt / llms.txt at the domain root when the check needs them). We do not crawl the rest of the site like a full report.
Scoring rules for the full site crawl are documented in methodology. Want every category at once? Generate a free report.
Get your free SEO & GEO report
Enter your URL and receive a full audit with scoring and recommendations. No sign-up required.