WCAG 3.1.1: Language of page
In European law this criterion is EN 301 549 clause 9.3.1.1 — chapter 9, the part of the harmonised standard that applies to websites under the European Accessibility Act.
How to test by hand
Automated checks find only some failures of this criterion. These steps cover the rest.
You need
- Browser developer tools
- Screen reader (NVDA, JAWS, VoiceOver or TalkBack)
- Free website scan (first pass only)
Steps
- Open the page source (Ctrl+U or Cmd+Option+U) and find the opening <html> tag. Check that it has a lang attribute with a language code, for example lang="en" or lang="de".
- Compare that code with the language most of the page's text is written in. On a page that mixes languages, the code must name the language used most.
- If two or more languages are used about equally, check that the lang value names the language that appears first on the page.
- Turn on a screen reader and let it read the first paragraphs. Listen for whether the words are pronounced with the rules of the page's language, not read with a foreign accent or spelled out.
- For PDF documents linked from the page, open the document properties and check that a document language is set and matches the main language of the text.
- Passes when
- The <html> element has a lang value naming the language most of the page is written in, and a screen reader reads the text with that language's pronunciation.
- Fails when
- The lang attribute is missing, empty or not a valid language code, or it names a different language from the main text (for example lang="en" on a page written mostly in German).
Steps are based on W3C’s Understanding WCAG 2.2: 3.1.1 Language of page, which explains the intent, examples and exceptions in full. A manual check by you is a first look, not an audit: it does not make a site conformant and is not a substitute for testing by an experienced auditor with real assistive technology users. How we separate what a machine can and cannot check is explained in our methodology; for a full audit, see the directory of accessibility agencies.
What automation checks
3 axe-core rules test failures of this criterion. Our scanner runs them on every page it visits:
html-has-langhtml-lang-validhtml-xml-lang-mismatch
What automation cannot prove
An automated test finds some failures of WCAG 3.1.1; it cannot confirm the criterion is met. Whether the result actually works for people — in context, with real content — is a judgement call that needs a human auditor. Nothing on this page is a statement of conformance or legal advice. The full map of what our scanner covers and where it stops is on what our scanner checks.
Related guides
- Audyt WCAG i deklaracja dostępności: przewodnik
- EN 301 549: the European accessibility standard explained
- accessiBe Alternatives: What Replaces Each Part of It
- Accessibility Overlays vs. Real WCAG Audits: What Actually Delivers Compliance
- ARIA Labels Explained: aria-label vs aria-labelledby vs aria-describedby
- How to Write Alt Text: A Practical Guide (WCAG 1.1.1)
- WCAG accessibility audit: process, deliverables and how to choose a vendor
- WCAG conformance levels: A, AA and AAA — which one actually applies to you
Does your site pass these checks?
Free instant scan. No signup required. WCAG 3.1.1 is one of the criteria it tests.
Scan website