3.1.1 Language of Page [A]

Level A

The default human language of each Web page can be programmatically determined.>

Explanation

The written language of the page must be identified in the code of the web page. This makes sure that screen readers automatically use the correct speech libraries for accent and pronunciation.

Roles

  • Content
  • Development
  • QA

Requirements

  • The language of the content is indicated in the lang attribute of the <html> element.

Common mistakes

  • No lang attribute is present on the <html> element;
  • The lang attribute is present on the <html> element, but the language code does not match the written language of the content.

Official resources

Other resources