Skip to main content
All website issues
Ease of Use

Page language is not declared

What this means for your business

Your page doesn't declare what language it's written in. Screen readers may mispronounce your content, and search engines may have trouble categorizing your site correctly.

How to fix it
Easy
5 minutes

  1. 1Add a lang attribute to the opening <html> tag: <html lang="en"> for English, <html lang="fr"> for French, etc.
  2. 2Use standard BCP 47 language codes: en, fr, de, es, pt, ja, zh, etc. For regional variants: en-US, en-GB, pt-BR.
  3. 3This tag is usually in your main layout/template file — not on individual pages.
  4. 4If different sections of the page are in different languages, add lang attributes to those specific elements too.

On WordPress

WordPress sets the html lang attribute automatically based on your site language (Settings → General → Site Language). If the attribute is missing, your theme may have a custom html template overriding WordPress's output.

On Shopify

Shopify's themes include lang="{{ request.locale.iso_code }}" on the html tag automatically. If missing, edit the theme.liquid file and add lang="{{ shop.locale }}" to the <html> opening tag.

Does your site have this problem?

SiteSprout scans your site, tells you which issues you actually have in plain English, and keeps watch so nothing breaks silently.

Scan your site free