Search Menu
Language Menu
Mobile Menu
OGCIO

9.15 WCAG 2.1 Success Criterion 3.1.2 - Language of Parts

Write content so that the language of all passages and phrases can be clearly understood. Is it in English? French? Japanese? This will enable screen readers to pronounce each item in the correct language.

Before Rectification

A web page sample containing content in several languages.

A sample coding with no clue on the use of multiple languages.

In the example above, the majority of the website is in English. However, a small section is in German. In this case, it is essential to define this change in language, so that screen readers can detect the change and pronounce correctly.

After Rectification

A sample coding with a tag containing a language attribute around the German part of the text to help screen readers identify it.

The image above shows how this code should look like so that the screen readers can detect and pronounce the words using the proper languages.

WCAG 2.1 Reference:https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts