Practice · Accessibility

Declare a page language correctly

Accessibility Low at worst 29 of 30

Try it yourself

One attribute tells browsers, screen readers and translation tools what language a page is written in. Four attempts at it.

Which one is correct?

Pick a line. Every one of them has an answer.

Show me the answer

<html lang="en-GB">

This is the one. A valid code, with an optional region that helps tools pick British spellings and voices. Plain "en" is also perfectly valid if you would rather not commit to a region.

The written version

Telling browsers which language the page is in →

How to check your own site for this, what to change, and how to confirm it worked.

Now the real thing

Run this check on your own site.

The same check, plus twenty-nine others, against your actual pages. Free, no account, about a minute.

Free · No account · Results in under a minute · Public websites only