Start scanning free

( Understandable / WCAG 3.1.1 )

lang attribute has an invalid value

This check maps to Language of Page. Use the guidance below to confirm the issue, understand who it affects and ship a fix.

Serious Level A WCAG 3.1.1 — Language of Page

What’s wrong

The <html lang="..."> attribute is set, but its value isn’t a valid BCP 47 language code, a typo like "eng" instead of "en", for example.

Why it matters

Screen readers use lang to pick pronunciation rules. An invalid code means the browser falls back to a default voice, which can badly mispronounce the entire page.

How to fix it

Use a real BCP 47 code, most commonly a two-letter ISO 639-1 language code, optionally with a region.

Before
<html lang="english">
After
<html lang="en">

Learn more