Inappropriate Page Language Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Inappropriate Page Language Check

Description

The “Inappropriate Page Language Check” evaluates whether the primary language of the webpage is correctly identified using the lang attribute on the <html> element.

Example outcome

I verified that the webpage main language is incorrectly marked. Does \"en-GB\" exists?

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. Change the language code in the lang attribute of the <html> tag.

Resources