Page Language Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Page Language Check

Description

The “Page Language Check” evaluates whether the language of the page is marked correctly with the appropriate lang attribute in the <html> tag.

Example outcome

I observed that the webpage’s main language is marked as \"en\".

Impact

Fixes

To address inappropriate page language:

  1. Determine the language in which the page’s content is mainly presented.
  2. Verify which is the correct language code for that language.
  3. Add or change the language code in the lang attribute of the <html> tag.
  4. If there are some page parts in another language, specify the language for those using the lang attribute in the specific elements.

Resources