Rule LANG-1
Each page must have a lang attribute on its html element whose value is a valid two-character language code.

Description

Best Practice Type: Pass/Fail

Each page must have a lang attribute on its html element whose value is a valid two-character language code.

Notes

Markup

[lang] (HTML4)

[xml:lang] (xhtml)

Associated Accessibility Guidelines and Standards

Guideline or
Standard
Requirement Priority Test
Type
IITAA 2.3 Identify the language of text. Required Violation
Section 508 none none
WCAG 1.0 4.3 Identify the primary natural language of a document. Required Violation
WCAG 2.0 3.1.1 Language of Page: The default human language of each Web page can be programmatically determined. Required Violation

Examples

Evaluation Techniues

none

Testsuite Tests

none