Use a valid lang attribute value

Last updated:

What is a valid language code?

Valid language codes are either two-letter or three-letter language codes. You can find the list of valid language codes in the ISO 639-1 code list.

For English this would be en:

<html lang="en">
    <!-- content -->
</html>

Why is this important?

The language of a page is used by screen readers to speak the content of the page in the correct language.

Check out the language check for other reasons why the language attribute is important.

More info:

WCAG 3.1.1 Language of Page.

Rule info

Standard

WCAG A SC 3.1.1

Regulations

EN 301 549 RGAA EAA AODA

User impact

Fix complexity

Affects

Was this article helpful?

Checkout the ExcellentWebCheck services

ExcellentWebCheck's goal is to improve the online user experience. The tools of ExcellentWebCheck help to detect and improve usability problems on your website.