html-has-lang: Document <html> element must declare a valid lang attribute
Set a valid BCP-47 language code (e.g., lang="en", lang="de", lang="fr") on the root <html> element.
Why this matters for EAA & ADA compliance
Screen readers select pronunciation rules from <html lang>. Multi-market EU stores without accurate lang attributes read German or French pages with English phonetics.
Mapped standards: 3.1.1 Language of Page (Level A) • EN 301 549 § 9.3.1.1
Standard HTML Fix
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html lang="en">
Shopify Liquid Fix
<html>
<html lang="{{ request.locale.iso_code }}">
React / Next.js Fix
<html>
<html lang={locale}>