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
- Visual Impairments: Users may hear text read in an incorrect accent or with incorrect pronunciation, especially for non-English sites or non-default dialects.
- Cognitive Disabilities: Language-specific tools (like simplified vocabulary versions or screen overlays) may not trigger correctly, reducing comprehension.
- Auditory Disorders: Mispronunciation can make understanding spoken content more cognitively demanding.
Fixes
To address inappropriate page language:
- Determine the language in which the page’s content is mainly presented.
- Verify which is the correct language code for that language.
- Change the language code in the
lang
attribute of the<html>
tag.