Skip to main content
WCAG Patterns

WCAG 3.1.2 · Level AA · WCAG 2.0

Language of Parts

Passages or phrases in a different language from the page default must be marked with a lang attribute.

Principle
Understandable
Guideline
Readable
Level
AA
Added in
WCAG 2.0

What it means

Passages or phrases in a different language from the page default must be marked with a lang attribute.

This is the short summary — a long-form breakdown (with code examples, common failures, and fix patterns) is queued for this criterion. In the meantime, the official W3C document linked at the end of the page is the authoritative source.

Quick checks

  • Run axe DevTools against the page and filter for rules citing 3.1.2.
  • Navigate the component with Tab + Enter only and confirm nothing is orphaned.
  • Inspect the accessibility tree in DevTools (Accessibility pane in Chrome/Firefox).

Further reading

The authoritative source is the official W3C Understanding document for 3.1.2. Framework-specific patterns and axe-rule mappings land here as the library grows.