# WCAG 3.1.2 Language of Parts: explained simply

The language of every passage or phrase must be determinable from the code, even where it differs from the language of the page. Exempt are proper names, technical terms, words of indeterminate language, and words or phrases that have become part of the vernacular of the immediately surrounding text.

## What does the criterion require?

When a screen reader reads a French sentence with English pronunciation rules, it is hard to follow. So
the human language of each passage or phrase on a page has to be programmatically determinable, that is,
from the code. Where nothing else is specified, the language of the page applies, which is required by
[3.1.1 Language of Page](https://barrierepruefung.de/en/knowledge/wcag/3-1-1-language-of-page). What needs marking, then, are the parts
that differ from it. A phrase may consist of a single word.

In HTML the element around the text carries the `lang` attribute, for example `<blockquote lang="de">`
for a German quotation (H58). The value is a standard language tag conforming to BCP 47.

This helps people who use screen readers or other text-to-speech software, and people who find reading
difficult. Braille translation software can follow the change, and browsers can use the appropriate
characters and scripts. It matters most when the direction of writing or the alphabet changes.

## Which exceptions are there?

The standard exempts four cases:

- **Proper names**, such as names of people, places or brands. "Albert Camus" need not be marked as French
  in an English text.
- **Technical terms**, for example "Homo sapiens" or "habeas corpus".
- **Words of indeterminate language.**
- **Words or phrases that have become part of the vernacular of the immediately surrounding text.** The
  W3C's example is "rendezvous" in English.

Whether a single word has become part of the surrounding language is not always obvious. The
Understanding document says to treat single words as part of the surrounding language unless it is clear
that a change in language was intended. If in doubt, ask whether the word would be pronounced the same
in the surrounding language, apart from accent or intonation.

Even for borrowed words and proper names, which need no marking, the W3C encourages it, because some are
otherwise read badly.

In some situations, as in the list of all links, a screen reader announces only the accessible names of
elements, the names given to assistive technology. Language information is lost there even when it is
correct in the code. The limitation lies in the software and does not fail the criterion. According to
the Understanding document, anyone testing therefore cannot rely on what they hear alone but must check
what is in the code.

## Common failures

The W3C has no failure technique for this criterion. These cases result from the requirement, the
Understanding document and the test procedure of H58:

- **A foreign quotation with no marking.** A testimonials page shows a customer's comment in German, and
  the code gives no other language for it than for the rest of the page.
- **A language switcher without language information.** The links "Français" and "Polski" are in their
  own languages, but without `lang` they count as English. In the W3C's example each link carries its own
  language.
- **A block of text in another language.** A supplier's terms of delivery have been pasted in German and
  are not marked up.
- **Wrong or invalid information.** A passage is marked as French while the text is Italian, or the
  attribute does not hold a valid tag.

## Checked automatically and checked by you

### What the automated check detects

Coverage: selective. The automated check covers individual aspects of this criterion. The validity of lang attributes that are present is checked. A missing lang on a foreign-language passage cannot be detected by machine.

- [Invalid language declaration on a passage](https://barrierepruefung.de/en/knowledge/rules/valid-lang) (`valid-lang`)

### What you check yourself

You answer this question in the manual checks of your scan.

#### Are passages in another language marked as such?

1. Look on your pages for text in a language other than the main language of the page: paragraphs and quotations in another language, entries in the language switcher such as "Deutsch" or "Français", titles and phrases in another language. If you find nothing, choose "not applicable".
2. Right-click such a passage and choose "Inspect" (in some browsers "Inspect Element"): the element itself or an element enclosing it must carry a lang attribute with the language of the passage, such as lang="de" for German text on an English page. If only the main language is given at the very top on the html element, the markup is missing. The automatic check establishes whether a lang that is present is valid; it cannot detect a missing one.
3. No markup is needed for proper names, technical terms, words of indeterminate language and words or phrases that have become part of the language of the surrounding text, in English for example "podcast" or "rendezvous". In case of doubt a single word counts as part of the surrounding language, as long as no change of language is evidently intended.

## Classification

- Level: AA
- Introduced in: WCAG 2.0
- W3C explanation: [Understanding 3.1.2](https://www.w3.org/WAI/WCAG22/Understanding/language-of-parts)

## Sources

- [WCAG 2.2, W3C Recommendation](https://www.w3.org/TR/WCAG22/)
- [Understanding 3.1.2](https://www.w3.org/WAI/WCAG22/Understanding/language-of-parts)
- [W3C Techniques, H58: Using language attributes to identify changes in the human language](https://www.w3.org/WAI/WCAG22/Techniques/html/H58), retrieved on 2026-12-04

---

As of: 2026-12-04 · https://barrierepruefung.de/en/knowledge/wcag/3-1-2-language-of-parts
