HTML Language Attribute: A Basic SiteBoost Check
Website intelligenceHTML Language Attribute: A Basic SiteBoost Check
The HTML lang attribute identifies the main language of a page. Assistive technologies and browsers can use it to interpret pronunciation and language behavior, so the value should reflect the content rather than the location of the server or business.
Set the language at the document root
The lang attribute is usually placed on the root html element. Use the correct language code for the primary language of the page, and make sure a shared layout does not overwrite a page that intentionally uses another language.
A language attribute is a technical declaration; it does not translate the text or prove that the content is suitable for a particular region.
Check the reported value
SiteBoost reports whether the scanned page includes a language attribute. If it is missing, inspect the rendered HTML and identify which layout or template creates the document root.
For multilingual sites, verify the language of each version and keep alternate language navigation consistent. A single global value may not be correct for every localized page.
- Confirm the html element has a lang value.
- Match the value to the page's main language.
- Review multilingual templates individually.
- Rescan after updating the root layout.
Include language in accessibility review
Check that the page's actual text matches its declared language. If substantial passages use another language, consider whether those sections need their own language annotation.
Use the SiteBoost finding as an initial check and pair it with a broader accessibility review.
