The change in language for a portion of content is not correct

Link to The change in language for a portion of content is not correct copied to clipboard
Rule ID:
lang-change-not-valid
User Impact:
Serious
WCAG :
3.1.2.a

Rule

Inline language changes must be identified with a valid lang attribute.

Background

Most screen readers can read several different languages. When content is written in more than one language, a screen reader does not know to switch languages unless the markup tells it to. Content read with the wrong language pronunciation may be very difficult or impossible to understand. When the change in language of a particular portion of content is correctly identified, screen readers will know which language library to use.

How To Fix

Fix this issue by providing a valid lang value for the lang attribute.

A list of valid values can be found on the ISO Codes for the Representation of Names of Languages page.

Additional Resources