Skip to content

WCAG 3.1.2: Language of parts

In European law this criterion is EN 301 549 clause 9.3.1.2 — 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

  • Visual inspection
  • Browser developer tools
  • Screen reader (NVDA, JAWS, VoiceOver or TalkBack)

Steps

  1. Read through the page and note every word, phrase or passage written in a language other than the page's main language, including language-switcher links and quotations.
  2. Remove from your list proper names, technical terms, words of indeterminate language and borrowed words now part of the surrounding language. If unsure, ask whether the word is pronounced the same in the surrounding language.
  3. For each remaining item, right-click it and choose Inspect. Check that the element, or an element around it, has a lang attribute with the correct code for that language.
  4. Check the language switcher: each language name written in its own language (Deutsch, Français…) should carry its own lang attribute.
  5. With a screen reader, read the foreign-language passages in the normal reading flow and listen for the voice switching to that language's pronunciation.
Passes when
Every passage or phrase in another language, other than proper names, technical terms, words of indeterminate language and adopted words, sits inside an element whose lang attribute names that language.
Fails when
A foreign-language passage has no lang attribute (or a wrong one), so a screen reader reads it with the page's default pronunciation rules.

Note: W3C notes that screen readers often ignore language changes when reading an accessible name (for example in a list of links); this is a user agent limitation and does not fail the criterion, so judge by the markup, not only by what you hear.

Steps are based on W3C’s Understanding WCAG 2.2: 3.1.2 Language of parts, 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

One axe-core rule tests failures of this criterion. Our scanner runs it on every page it visits:

  • valid-lang

What automation cannot prove

An automated test finds some failures of WCAG 3.1.2; 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

Does your site pass this check?

Free instant scan. No signup required. WCAG 3.1.2 is one of the criteria it tests.

Scan website