WCAG A/AA requirement Priority: Serious
The page's language setting is wrong
The page declares a language code that does not exist, for example a typo or a made-up value.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Assistive technology cannot use the code, so text may be read with the wrong pronunciation. Translation tools may also misidentify the language.
Who is affected
- blind customers
- screen reader users
- people who use read-aloud or translation tools
How to fix it
Use a valid BCP 47 language code in <html lang>, such as "en", "de", "pl", "uk" or "de-AT". Check for typos, underscores (use "de-DE", not "de_DE") and empty values. Make sure each language version outputs its own correct code.
On Shopify
Usually caused by a custom edit in the theme's layout file or a translation app. Check the value printed in the <html> tag and correct it in the layout Liquid file or the app's settings.
On Shoptet (CZ)
Usually comes from the shop's language settings or a template customisation. Check the language configuration first, then ask Shoptet or a partner about the template.
On PrestaShop
Check the language ISO code configured for each shop language in the back office and any hard-coded value in the theme's layout template.
On WooCommerce
Usually caused by a misconfigured site language, a multilingual plugin or a hard-coded value in the theme header. Check WordPress language settings and the multilingual plugin first.
Fix it with AI
Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.
You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA. Website: [https://…] ## Problem: The page's language setting is wrong WCAG 2.2 3.1.1 (A) The page declares a language code that does not exist, for example a typo or a made-up value. **How to fix:** Use a valid BCP 47 language code in <html lang>, such as "en", "de", "pl", "uk" or "de-AT". Check for typos, underscores (use "de-DE", not "de_DE") and empty values. Make sure each language version outputs its own correct code. ## Elements found by the automated check [Paste the HTML of the element here, or the selector from the Pandus report] ## Requirements - Change only what is needed; keep the design and how the site works. - Do not add accessibility overlays or widgets; fix the code or the content. - Show the corrected code and say in which template or file it goes. - Explain how to check the fix with the keyboard and a screen reader.
Standards
| Standard | Clause |
|---|---|
| WCAG 2.2 | 3.1.1 (A) Language of Page |
| WCAG 2.1 | 3.1.1 (A) Language of Page |
| WCAG 2.0 | 3.1.1 (A) Language of Page |
| EN 301 549 4.1.1 | 9.3.1.1 |
| EN 301 549 3.2.1 | 9.3.1.1 |
| Section 508 2017 | E205.4 |
| ДСТУ EN 301 549 2022 | 9.3.1.1 |
Automated check: axe-core rule html-lang-valid.
dequeuniversity.com, github.com, www.w3.org
Read next
WCAG success criterion
Guides and tools
- WCAG 2.2 AA checklist for online shops
- HTML accessibility checker (WCAG 2.2)
- Free WCAG checker for WCAG 2.2 AA
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.
Related checks
-
Some videos or sounds start playing with audio by themselves
WCAG 1.4.2 A
-
Buttons have a hidden name that differs from their visible text
WCAG 2.5.3 A
-
Accessibility attributes have wrong values
WCAG 4.1.2 A
-
Some table headers do not describe any data
WCAG 1.3.1 A