Language attribute checker
What is a Language Attribute Checker?
The Language Attribute Checker looks at the lang attribute on a webpage's <html> tag, which declares the primary language of the page's content (e.g. lang="en").
Why the Lang Attribute Matters
- Accessibility — Screen readers use the lang attribute to select the correct pronunciation and voice for text-to-speech.
- Search engines — It helps search engines serve the right language version of a page to users in different locales.
- Browser features — Browsers use it to offer translation prompts and apply language-specific spell-checking and hyphenation rules.