Understandable · Readable

3.1.1 Language of Page

The page's primary language must be set in the HTML lang attribute, so screen readers use the correct pronunciation rules and translation tools work correctly.

Level A Added in WCAG 2.0 3 automated rules

What WCAG 3.1.1 Requires

The page's primary language must be set in the HTML lang attribute, so screen readers use the correct pronunciation rules and translation tools work correctly.

Can AccessBell Test This Automatically?

Yes. AccessBell's scanner runs axe-core, which includes 3 rules that catch code-level failures of this criterion:

This criterion is included in: WCAG 2.2 AA Checker, WCAG 2.1 AA Checker, ADA Compliance Checker, Section 508 Checker, EN 301 549 Checker.

How to Test It by Hand

View the page source and check that the <html> tag has a lang attribute matching the page's language.

Common Failures

  • The <html> tag has no lang attribute.
  • The lang attribute uses an invalid or incorrect language code.

Example Fix

  1. Declare the page language. Add a lang attribute to the html element so screen readers use the right pronunciation.
  2. Mark language changes. Wrap phrases in another language with their own lang attribute.
<!doctype html>
<html lang="en">
  <head>...</head>
  <body>
    <p>Our motto is <span lang="fr">savoir-faire</span>.</p>
  </body>
</html>

WCAG 3.1.1 Questions

What does WCAG 3.1.1 require?

The page's primary language must be set in the HTML lang attribute, so screen readers use the correct pronunciation rules and translation tools work correctly.

Can AccessBell test WCAG 3.1.1 automatically?

Yes. AccessBell runs 3 automated rules that can catch failures of this criterion, including in our WCAG 2.2 AA Checker, WCAG 2.1 AA Checker, ADA Compliance Checker, Section 508 Checker, EN 301 549 Checker.

What level is WCAG 3.1.1?

Level A, added in WCAG 2.0.

Sources

This page explains a technical standard and is not legal advice. See our disclaimer.

Check Your Site Against WCAG 3.1.1

Run a free scan and see whether your pages pass 3.1.1 Language of Page, along with every other criterion in WCAG 2.2, 2.1 or 2.0.

Then $29/mo per domain. Cancel anytime.