WCAG 3.1.1 Language of Page: what it means and how to fix it

Level A · Understandable · Updated

Short answer: Declare the page language with a lang attribute on the <html> tag, so screen readers pronounce the text correctly.

What it requires

The default human language of each page must be programmatically determinable, which in HTML means <html lang="en"> or the appropriate language code.

Who it affects

Screen reader users. Without a language, the screen reader guesses, and it may read English with the pronunciation rules of another language.

How it shows up in ADA website claims

A missing lang attribute is a common automated finding and is routinely listed among the violations in complaints.

How to check your site

View the page source and look at the first html tag. It should have a valid lang value such as en or en-US.

How to fix it

<html lang="en">

For passages in another language, mark them: <p lang="es">Envío gratis</p>. That is 3.1.2, Level AA.

Frequently asked questions

en or en-US?

Both are valid. Use en unless you have a reason to specify a region.

My builder does not let me edit the html tag. What now?

Most platforms set it from the store or site language setting. Check that setting first.

Is this a quick fix?

Yes, it is usually one line in the theme layout file.

Automated rules that test this (axe-core): html-has-lang, html-lang-valid, html-xml-lang-mismatch. Our scanner runs these checks.

Other commonly cited criteria

Read the official WCAG 2.1 specification at W3C.

Proof of Access provides technical accessibility assessments. We are not a law firm and nothing on this page is legal advice. If you have received a demand letter or a lawsuit, talk to an attorney.