On-page SEO
Language attribute
Why it matters
The lang attribute on the html tag declares the page language. Browsers use it for translation and hyphenation, screen readers use it for pronunciation, and search engines use it as a language signal.
How to fix it
- Add a language code to the html tag, e.g. <html lang="en"> or lang="de".
- Use the correct code for each language version of a multilingual site.
Check it with
- Meta Tags Analyzer – Check the title, description, robots, canonical and every other meta tag on a page.
Scoring: a passed check earns its full weight, a warning half and an error none. How the SEO score works