<html> element has an [xml:lang] attribute with the same base language as the [lang] attribute

If the webpage does not specify a consistent language, then the screen reader might not announce the page's text correctly.

Indicators

Impact

(How ScanGov measures tasklist priorities.)

About

If the webpage does not specify a consistent language, then the screen reader might not announce the page's text correctly.

Why it's important

Helps screen readers pronounce content correctly by identifying the language of the page and its elements.

User stories

As a screen reader user, I want the page language to be correctly identified so that content is pronounced properly.

Error

(ScanGov messaging when a site fails a standard)

Failed: <html> element has an [xml:lang] attribute with the same base language as the [lang] attribute

Guidance

Get ScanGov