Hreflang and international · Language

Missing HTML lang attribute

The html element on this page has no lang attribute, so screen readers and search engines must guess which language the page is in.

How this page is built

The opening html tag of this page has no attributes at all. Every other page on this site has lang="en-GB".

This page has no hreflang annotations, so the only fault is the missing attribute.

Why it matters

Without a lang attribute, a screen reader uses the user’s default language, which may not match the page. Browsers cannot offer translation reliably, and search engines have to detect the language from the text.

It is a WCAG failure (success criterion 3.1.1) and one of the most common accessibility errors on the web.

How to check it

View the source and look for a lang attribute on the html element. Accessibility checkers and crawl tools report pages without one.

How to fix it

Add the attribute to the html element, for example <html lang="en-GB">. Set it in the base template so every page gets it.

Back to all tests