🩺 Website Health Scanner

← All fix guides

How to Fix Missing Language Attribute

What it is

The lang attribute on the html element states the main language of the page, for example lang="en" for English.

Why it matters

How to fix it

  1. Pick the correct language code (en, es, fr, de and so on).
  2. Add it to the html tag.
  3. If your site is multilingual, set it per page.
  4. Re-scan to confirm.

Platform tips

WordPressSettings > General > Site Language sets it automatically via language_attributes().
WixWix sets it from your site language: Settings > Language & Region.
SquarespaceSettings > Language & Region sets the site language; check your template if it is still missing.
ShopifyOnline Store > Preferences and Languages; the theme.liquid html tag should include lang="{{ request.locale.iso_code }}".
Plain HTMLChange <html> to <html lang="en">.

Re-scan your site

Related guides

Disclaimer: This guide is general, informational advice only and is not legal, medical, financial, compliance or professional advice. Menu names on platforms change over time; check the platform's own help if something looks different.