In short
Every page should say what language it's in. Without lang on the <html> element, screen readers guess and may read English with the wrong accent, and browsers can't offer accurate translation. Add lang="en" (or the right code). Weight 7.
<html lang="en">
Use a region when it matters: en-US, en-GB. For a Bangla page, bn.
WordPress: set Settings > General > Site Language; the theme prints it. If missing, the theme's header is outdated. Shopify: set by the store language; check theme.liquid. Webflow: Site settings > General > Language. Wix: set by site language. Custom builds: in the base layout (and the SSR template).
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Lighthouse accessibility score
MDN, lang attribute

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.
![<html> Element Does Not Have a [lang] Attribute (PageSpeed Insights): How to Fix](/uploads/pagespeed-html-has-lang-cover.webp)


