How to fix html lang valid on Squarespace

Add a valid BCP 47 language code to the `lang` attribute on your site's `<html>` element so browsers and assistive technologies know what language your content is written in.

Steps for Squarespace

  1. Squarespace automatically adds a `lang` attribute to the `<html>` tag based on the site's language setting.
  2. Go to Settings → Language & Region → Site Language and select the correct language from the dropdown.
  3. Save and publish. Squarespace will update the rendered `<html lang="...">` attribute automatically.
  4. Confirm by visiting your live site and inspecting the page source or using a browser developer tool to view the `<html>` tag.
  5. Note: Squarespace does not allow direct editing of the `<html>` tag via custom code; the language setting is the only lever available to store owners.
Official Squarespace documentation ↗

What is html lang valid?

Every web page starts with an `<html>` tag, and that tag should include a `lang` attribute that tells browsers, screen readers, and search engines what human language the page is written in — for example, `lang="en"` for English or `lang="fr"` for French. The value must be a valid BCP 47 language tag (a globally recognised standard). When this attribute is missing or contains an unrecognised code, assistive technology cannot determine the correct language automatically. WCAG Success Criterion 3.1.1 ("Language of Page") requires this for Level A conformance — the most basic level of accessibility compliance.

Screen readers use the `lang` attribute to select the correct voice, pronunciation rules, and text-to-speech engine for your content. Without a valid value, visually impaired shoppers may hear your product descriptions read back in the wrong language or with completely garbled pronunciation — making your store unusable for them. Beyond accessibility, missing or invalid language declarations expose you to legal risk under accessibility laws (ADA, EN 301 549, and similar regulations in many countries) that increasingly cover commercial websites and online stores. Search engines also use the declared language to serve your pages to the right regional audiences, so fixing this can indirectly protect your international SEO. The fix itself takes under five minutes and requires no coding skill on most platforms.

See the complete Html lang valid guide for every platform and the full background.

Not sure if your Squarespace store has this?

Run a free SEOLZ scan — we’ll find html lang valid and every other issue across your whole site.

Scan my site free

Fix html lang valid on another platform