Lang Attribute Checker for WCAG 3.1.1 and 3.1.2
Checks the html lang attribute and lang on parts of a page.
Use the tool
Why this tool exists
Screen readers pick the voice and pronunciation from lang.
The tool checks the page lang, lists every part with another language, validates the tag shape, looks up the language name from your browser, and warns about mismatching meta content-language and missing dir for right-to-left languages. It cannot tell which passages are in another language.
How to use it
- Paste the HTML.
- Read the language list.
- Fix errors.
- Add lang to passages in other languages.
Frequently asked questions
Where does the language name come from?
From your browser Intl data, which does not list every code.
Is xml:lang enough?
Not in HTML. Use lang.
Do names need lang?
Proper names and common loan words do not.
Is the HTML uploaded?
No.