Page language code is not valid

  • WCAG 3.1.1 Language of Page, level A
  • Serious
  • Structure
  • Automated
  • Server pass

Why it matters

A language code that does not exist is ignored, so assistive technology falls back to guessing.

How to fix it

Use a valid BCP 47 code such as en, en-GB or fr-CA.

<!-- Before -->
<html lang="english">

<!-- After -->
<html lang="en-GB">

Read the W3C guidance: Understanding 3.1.1 Language of Page.

Related rules

Find this on your own site. A11yMate scans every page and lists where it happens. See pricing or browse all rules.