Skip to content

Learn

3.1.2 Language of Parts

A passage in another language has its language set in code.

Level AA

What the automated checks look for

Passages' language codes are not valid

An invalid language on part of the page makes a screen reader guess its pronunciation.

Who it affects. A screen reader reads the passage in the wrong voice, so it is hard to understand.

How to fix it. Use a valid language code on the element, such as lang="fr" for a French passage.

<p lang="fr">Bienvenue à bord.</p>

Read more