Conforma
Accessibility fix guide WCAG 3.1.1 Language of Page

How to fix: The page must declare its language

The <html> element needs a lang attribute so screen readers use the right pronunciation and voice for the content.

The fix

Add a lang attribute to the <html> element, e.g. <html lang="en">.

Before and after

Fails
<html>
Passes
<html lang="en">

Related fixes

Does your site have this issue?

Scan any page free against WCAG 2.2 AA and get every issue with its fix.

Scan your site free
← All fix guides