Page languages do not match Accessibility Checkpoint
Description
lang
and xml:lang
should match if both are specified.
Help
Either remove xml:lang
or change it to match lang
. In some languages only the primary language needs to match, such as en-US
and en-GB
.
Applicable standards
- ACT Rules 5b7ae0
- WCAG 2.0 (Success Criteria: 3.1.1 level A)
- WCAG 2.1 (Success Criteria: 3.1.1 level A)
- WCAG 2.2 (Success Criteria: 3.1.1 level A)
- Section 508 (2017) (Success Criteria: 3.1.1 level A)
Note: Section 508 Refresh (2017) checkpoints are equivalent to WCAG 2.0 level A and level AA checkpoints.
Change history
- 6.50 Oct 2023 Removed since since rule now deprecated by w3.org ACT Rules.
- 6.47 Dec 2022 Aligned blank xml:lang behavior with ACT Rules.
- 5.38 Jul 2020 Don’t fire if
lang
is invalid. - 5.36 Jan 2020 Added.
This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.
Rule ID: AccPageXmlLangMismatch