How to Fix a Missing Lang Attribute
Declare the page's language so assistive technology pronounces it correctly.
A missing lang attribute means the html element does not declare what language the page is written in. Screen readers then apply the wrong pronunciation rules to the entire document, which makes it hard to follow. It is one attribute, it is a WCAG requirement, and roughly one in six audited sites is missing it.
Why It Matters
Without it, a screen reader may read English with Spanish phonetics, or vice versa. It is also a supporting signal for search engines deciding which audience a page serves.
How to Fix
Add lang to the html element
Mark passages in another language
Set dir for right-to-left languages
Check every template
Code Fix
html<html><html lang="en-GB">Platform-Specific Instructions
Themes should output language_attributes() in the html tag. A hardcoded html tag is the usual cause.
Set it on the html element in the root layout; it does not appear by default.
Fixed that one.
Now find the rest.
A free audit ranks every issue on your site by the score points it costs — and links each one straight to its guide.
Run a free audit