Language and hreflang
Missing lang attribute
The <html> element has no lang attribute. Screen readers may read the page in the wrong voice, and browsers may offer to translate it needlessly.
What it means and why it matters
The lang attribute declares the page's language. Screen readers use it to pick pronunciation, and browsers use it for translation prompts and hyphenation.
Google says it detects the language from the content itself, so this matters more for accessibility than for ranking.
How to fix it
- Add the language to the <html> element in your main template.
- On multilingual sites, set it per page to the language of that page, matching its hreflang code.
<html><html lang="en-GB">Find it on your site
These free tools check for missing lang attribute and run without a sign-up:
Site Audit Tool
Crawl up to 500 pages for broken links, redirect chains, duplicate titles and thin or near-duplicate content, with fix guides, a site tree and comparisons.
Website SEO Checker
Check any page for on-page SEO problems: title, meta description, headings, canonical, robots.txt, noindex, structured data, alt text, HTTPS and speed, with a score.
Related issues
Browse every problem in the SEO Issues Library.