SEO checks / On-page
Missing html lang attribute
The lang attribute on the <html> element (e.g. <html lang="en">) declares the page's language to browsers, search engines, and assistive technology. It's a one-line fix that's easy to overlook in a hand-rolled template or an early-stage build.
Why it matters
Search engines use it to serve the right pages to the right language/locale audiences, and screen readers use it to select correct pronunciation. Its absence is a small but real accessibility and international-SEO gap.
How to fix it
- Set lang on the root <html> tag in your base layout, once, for every page.
- Use the correct ISO 639-1 code for your primary language (and region, e.g. en-NZ, if relevant).
- For multi-locale sites, set it dynamically per locale rather than hardcoding one value.
Is this happening on your site?
We'll crawl your site, check it for this and every other issue on this list, and send you a free report.
Get my free SEO check