Default Language and Language Change Rules

Markup

[xml:lang] (xhtml)

[lang] (HTML4)

Rules

Rules for Default Language and Language Change
# Testing Description Implementation
FAE Firefox
Accessibility
Extension
LANG.1 Pass/Fail LANG.1

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

Implementation Notes

1.0 1.5
LANG.2 Pass/Check LANG.2

Markup must used to indicate changes from the default language on a page.

Requirement Notes

  • If there is text content within a page that is different than the default language of the page, the lang attribute must be used on a container element for the text content and the value of the lang attribute must be set to the language of the content.
NI NI