• Success Criterion 3.1.1
  • Conformance level A

Page’s Declared Language Not Matching Its Actual Content

3.1.1 — Language of Page

Scenario

Setting

A streaming music app's search results

What’s wrong

Wrong lang (template shipped lang="en" on a Hindi/Arabic/French site) — screen readers use wrong speech synthesizer.

Example

<html>

Why it matters

Screen-reader users who need correct pronunciation, and tools that depend on language metadata.

How to test

Check the html lang attribute against the page's actual content language: a template shipping lang="en" on a Hindi/Arabic/French page fails.

How to fix

The <html> element must carry a valid lang attribute matching the page language, updated when the site language switches.

<html lang="en">

The lang attribute tells screen readers which pronunciation and language rules to apply to the whole page.

Outcome

On a streaming music app's search results, this barrier is gone for screen-reader users who need correct pronunciation — they no longer have to work around this.

Who is affected

Screen-reader users who need correct pronunciation, and tools that depend on language metadata.

Learn more