Incorrect Page Language Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Incorrect Page Language Check

Description

The “Incorrect Page Language Check” evaluates whether the lang and / or xml:lang attributes are applied correctly and consistently on the <html> element, matching the page language.

Example outcome

I observed that the lang and / or xml:lang attributes are being used incorrectly.

Impact

Fixes

To address incorrect 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. Change the language code in the lang and / or xml:lang attribute of the <html> tag.

Resources