Issues

Accessibility: WCAG 2.0 A – HTML Lang & XML Lang Value Should Match

back to issues overview

WCAG 2.0 A – HTML Lang & XML Lang Value Should Match

The HTML document must contain a valid lang attribute or must correspond to a valid lang code for multilingual screen reader users who may prefer a language other than the default.

The xml:lang attribute value, if included on the html element, must duplicate the value of the lang exactly.

How to Analyse in the SEO Spider

To populate this filter ‘Accessibility’ must be enabled via ‘Config > Spider > Extraction’ and ‘JavaScript rendering’ mode via ‘Config > Spider > Rendering’.

View URLs with this issue in the ‘Accessibility’ tab and ‘HTML Lang & XML Lang Value Should Match’ filter.

Use the lower ‘Accessibility Details’ tab to click on the issue on the left-hand side, and see details of the location on the page of the violation on the right-hand side.

Bulk export the pages and details of the accessibility violations via ‘Bulk Export > Accessibility > All Violations’.

What Triggers This Issue

Please view the Deque University website further reading link below for ruleset triggers.

How To Fix

Ensure that HTML elements with both valid lang and xml:lang attributes agree on the base language of the page.

Back to top