Matan · WCAG · Perceivable

Page language (WCAG)

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.

This WCAG check is part of SEO-GEO scoring 3.0.0, last updated 2026-10-25. The number on this page is the developer scoring version. It is not an announcement that public release 3.0.0 is live. A free report shows the same pass condition for the pages it fetched.

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.

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.

3. How to fix it

  1. Add lang="en", lang="pl", or the correct BCP 47 code on <html>.
  2. Match the primary language of the content.
  3. Set lang on inner elements only for genuine mixed-language passages.

Scoring rules for the scan of fetched pages are documented in methodology. Want every category at once? Generate a free report.

Get your free website audit

Enter a public URL. The scan reads up to 300 pages and returns an HTML report with scores for measured pillars and a recommendation for each finding. No sign-up required.