Skip to content

Rule · Lint

Root <html> without lang

lint/missing-langerrorvoid lintupdated

Why it matters

Screen readers pick the wrong pronunciation, browsers offer bogus translation, and search engines have to guess the page language.

How to fix it

Set lang on the root element ().

Example

tsx
<html lang="en" suppressHydrationWarning>

References

void lint reports 67 rules in this category. Static source checks with no browser: Tailwind v4 silent failures, Next.js 16 API traps, React render-body bugs, accessibility markup, SEO files and motion hygiene.