In short
You can mark a phrase in another language with lang on any element, for example <span lang="fr">bonjour</span>. This check flags those inner lang values when they aren't valid language codes. Use the same format as on <html>: fr, es, bn, en-GB. Weight 7.
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Lighthouse accessibility score

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.
![[lang] Attributes Do Not Have a Valid Value (PageSpeed Insights)](/uploads/pagespeed-valid-lang-cover.webp)


