Issues

Accessibility: WCAG 2.0 A – HTML Element Requires Lang Attribute

back to issues overview

WCAG 2.0 A – HTML Element Requires Lang Attribute

The HTML document element 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.

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 Element Requires Lang Attribute’ 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 every HTML document has a lang attribute.

Further Reading

Back to top