Page language not declared
Medium priorityOn-page SEO
The <html> tag has no lang attribute, so browsers, screen readers and search engines have to guess the page’s language.
What triggers this issue
- The
<html>element has nolangattribute.
Why it matters
Screen readers use lang to choose the right voice and pronunciation. Browsers use it to offer translation, and it helps search engines serve the page to the right audience.
It is a WCAG accessibility requirement and a one-line fix.
How to fix it
- Add a
langattribute with the page’s language code to the<html>tag. - Use a region if it matters, like
en-GBorpt-BR.
<html lang="en">