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

Note: Section 508 Refresh (2017) checkpoints are equivalent to WCAG 2.0 level A and level AA checkpoints.

Change history

  • 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