Fix guides ยท Search fundamentals

Set the page language

Set the page language on the root element, such as <html lang="en">. Google doesn't use it for Search, so treat it as an accessibility fix.

Vendor documentation

What we check

We look for a lang attribute on your <html> element.

92%

of 198 sites we could read pass this.

Why it matters

This won't help you in Google. Google says "we don't use any code-level language information such as lang attributes," and works out language from your visible content.

It's still worth having because browsers and screen readers use it. Fix it after your other issues.

How to fix it

  1. Add the attribute to your root element.
<html lang="en">

Fix it yourself with AI

Small fixes shouldn't sit in a queue. Give your AI agent one prompt, and it fixes and deploys for you.

PromptShip is made by the team behind this checker.

Sources

Fixed it?

Run your site through the checker, and re-check after you ship to see what improved.

Check my site

Related guides