In short
Semrush flags "Pages have no hreflang and lang attributes" when a page has neither hreflang tags nor a lang attribute on the <html> element. Every site should set lang: browsers use it for translation prompts and screen readers use it for pronunciation. Hreflang is only needed if you have the same content in several languages or regions.
This warning covers two different things, and most single-language sites only need one of them.
The fix for most sites
<html lang="en">
Use en-US, en-GB and so on if you want to be specific.
If you have several languages
Add hreflang tags linking each language version to the others, plus x-default. See the hreflang articles in this cluster for the rules.
Where to set it
WordPress: Settings > General > Site Language; themes print it via language_attributes(). If it's missing, the theme's header.php is outdated. Shopify: set by the store language; check the theme's <html> tag. Webflow: Site settings > General > Language. Wix: set by the site language. Custom builds: add it to the base HTML template.
This guide isn't affiliated with or endorsed by Semrush.
Related issues
Sources and references
Semrush Knowledge Base, What Issues Can Site Audit Identify?
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.



