Accessibility

Page declares its language

a11y.html-has-lang

Why this matters

Screen readers pick their pronunciation from this. Without it, English can be read aloud with the wrong accent and rhythm, which is hard to follow.

Who fixes it

You can, usually

Roughly how long

5 minutes

Care needed

Low risk to change

How to fix it

Set <html lang="en-GB"> for a UK English site.

On your platform

WordPress

WordPress prints this itself from Settings → General → Site Language, through `language_attributes()` in the theme's `header.php`. A missing one therefore means the theme has a hardcoded `<html>` tag instead of calling that function — which is the thing to fix, because the hardcoded version will be wrong again the day the site adds a second language.

Shopify

`theme.liquid` opens with the `<html>` tag, and Shopify's themes print the shop's locale into it. If it is missing, that attribute has been removed from `theme.liquid`.

Drupal

Drupal sets it in `html.html.twig` from the site's language, so a missing one means a custom theme's template has dropped the attribute.

Joomla

Joomla prints it from the site language in the template's index.php. A missing one means the template has a hardcoded `<html>` tag.

How we score it

Failing this check takes up to 6 points off your accessibility score. It is a fact about your site rather than a measurement, so it reads the same on every scan until you change something.

Does your site pass this one?

This check runs on every scan, along with the other 106. Free, no account, and you see the evidence for each result.

Check my site

Other accessibility checks

See all 107 checks