What is off-page SEO?
Specifying the page language in HTML (<html lang="en">) matters for the following reasons:
1. Search engines more precisely determine the target audience
lang helps show the page to people who speak the right language. This affects relevance in search results and can improve rankings.
2. Screen readers read the text correctly
Without a specified language, screen readers may pronounce the text incorrectly. This is critical for accessibility.
3. Browsers correctly offer translation
If the language is specified, Chrome, Safari, and others react correctly: they offer or do not offer translation depending on the user's language.
4. Multilingual sites work more reliably
If a site has pages in different languages, lang helps avoid confusion: search engines do not mix content in results, and users get text in the right language.
This is an element that is almost invisible, but it directly affects SEO, accessibility, and how the page is perceived.
Short Answer
Interview readyA concise answer to help you respond confidently on this topic during an interview.