Declared language
Declared language. <html lang> tells engines which language the page is in. A Czech or Indonesian page declared as en-US is matched against English queries, judged by English quality models, and can be skipped as a language mismatch.
Key takeaways
- Check: Declared language is a site-level check in the quick win group.
- Fix: Static sites: set lang="cs", lang="id", lang="hi" etc. in the HTML template.
- Not this: Region codes you do not mean (en-GB on an Indian English site is fine; en-US on Czech is not).
- Effort: 2 min, site-level check; the audit drafts the fix from your own page.
Why does “Declared language” matter?
It is the single cheapest fix on this list and one of the most common mistakes on non-English WordPress sites.
| Check | Declared language |
|---|---|
| Layer | site-level check |
| Group | Quick win |
| Typical effort | 2 min |
| Weight in the score | 1 on a scale of 1 to 3 |
| Checked by | the website, the Chrome extension and the WordPress plugin (same analyser, 69 checks) |
How do you fix “Declared language”?
- WordPress: Settings → General → Site Language. Set it to the language you write in; the theme then outputs the right lang attribute.
- Static sites: set lang="cs", lang="id", lang="hi" etc. in the HTML template.
- If the site has several languages, each page declares its own and hreflang links the versions.
What should you not do?
- Leaving the theme default (en-US) because the admin interface is in English. The attribute is about the content, not the dashboard.
- Region codes you do not mean (en-GB on an Indian English site is fine; en-US on Czech is not).
Example
<html lang="cs"> for Czech content, <html lang="id"> for Indonesian, <html lang="hi"> for Hindi.
Frequently asked questions
How long does it take to fix "Declared language"?
About 2 min. It needs no developer: an editor can do it in the page editor.
Is "Declared language" checked per page or for the whole site?
It is a property of the whole site, so fixing it once covers every page. The website, the Chrome extension and the WordPress plugin run the same check.
What is the most common mistake with "Declared language"?
Leaving the theme default (en-US) because the admin interface is in English. The attribute is about the content, not the dashboard.
Sources
About the author
Related checks
Does your page pass this check? The audit runs all 69 and drafts the fix for you.