Missing html lang attribute
Part of Documentation, UX & Accessibility, which counts for 15% of the overall score. When this check fires it deducts 4 points from that category, once per scan, no matter how many places it turns up.
What it detects
The <html> tag has no lang attribute, which hurts screen readers and SEO.
Why it matters
Screen readers use the lang attribute to pick the right voice and pronunciation rules; without it they fall back to the user's default and can read your content in the wrong language entirely. Browsers also use it for translation prompts, hyphenation, and spellcheck, and search engines use it as a language signal. It is a one-attribute fix with real assistive-technology impact.
How to fix it
Add a lang attribute to the <html> tag of every HTML document, using the BCP 47 code for the page's actual content language: <html lang="en">, or lang="ar", lang="es" as appropriate. In a templated setup, fix the shared layout or base template once instead of each page. If parts of a page are in another language, mark those elements with their own lang attribute.
The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing
Does your repo trip this check?
Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.
Scan your repo