RatedWithAI

RatedWithAI

Accessibility scanner

WCAG 2.1

3.1.1 Language of Page

Level A success criterion

The default human language of each page must be programmatically identified.

Why it matters

Screen readers need the correct language to pronounce content accurately.

Common violations

  • Missing lang attribute on html
  • Incorrect language code
  • Language not updated for localized pages

Code examples

Bad

<html>

Good

<html lang="en">

How to fix

Set the correct lang attribute on the html element for every page.

Related criteria

Related resources

Test & fix this criterion

Use these free tools and guides to check and fix 3.1.1 Language of Page violations:

Scan your site

Check your WCAG coverage in minutes

Start a free scan