HTML lang Attribute
Checks that <html> has a lang attribute matching the page language.
What this check measures
We read `<html lang="...">` and verify it's set to a valid ISO language code matching the actual content.
Why it matters
Screen readers use lang for pronunciation. Google uses it for language targeting. Wrong lang serves the wrong audience.
How our audit detects it
Parse <html> element, check lang attribute value.
Typical findings
- error_outline<html> without lang.
- error_outlinelang="en" on a German site (template default).
How to fix
Set lang to your content's ISO code: `en`, `de`, `en-US`, `de-CH`, etc. Update per locale on multilingual sites.
Copy-paste fix prompt for your stack
Lovable · Cursor · Bolt · v0 · Replit · Windsurf · Claude Code · Base44
Frequently asked questions
en vs en-US?expand_more
Want this checked on your site?
Pantra runs the full audit (SEO, Security, GEO, Performance, Schema, Technical, Images) in 10 seconds and generates stack-specific fix prompts.
Scan my siteRelated checks
SSR / Pre-rendering
Checks if the page is server-rendered or statically pre-rendered.
TechnicalHTTP Status Codes
Checks that pages return proper status codes — 200 for live, 404 for missing, 301 for moved.
TechnicalNo Client-Side Redirects
Checks that redirects happen server-side, not via JavaScript.
TechnicalViewport Meta Tag
Checks for <meta name="viewport" content="width=device-width, initial-scale=1">.