Skip to content
3.1.1 · Level A · WCAG 2.0 · Understandable → Readable

Language of Page

The default human language of a page is set programmatically via the html element's lang attribute.

Why it matters

Without a correct lang attribute, a screen reader guesses the language and often applies the wrong pronunciation engine to an entire page, making it hard to understand even in the user's native language.

Automatically detected

Fully automatable — axe-core checks for a valid lang attribute value on <html>.

Related axe-core rules: html-has-lang, html-lang-valid

Fails

<html>

No lang attribute — assistive technology has to guess the page's language from content alone.

Passes

<html lang="en">

Declares English explicitly, so screen readers load the correct pronunciation rules immediately.

Openwell finds violations like this one across your whole site, clusters them by the component that caused them, and generates a fix that's re-validated before you see it.

Scan your site free
WCAG 3.1.1 Language of Page — what it requires and how to fix it — Openwell