Free scan

Fix "Page language to verify" in HTML

Why it's a problem

With no declared language, a screen reader falls back to its default voice: French text read with English pronunciation becomes unintelligible. It is among the cheapest failures to fix and the most disabling to endure.

How to fix it — HTML

Declare the main language on the <html> element with a valid code (fr, en, de…). Mark passages in another language with a local lang attribute so the screen reader switches voice at the right place.

Avoid
<html>
  <body>
    <p>Bonjour. Our <em>flagship</em> product…</p>
  </body>
</html>
Correct
<html lang="fr">
  <body>
    <p>Bonjour. Notre produit <em lang="en">flagship</em>…</p>
  </body>
</html>

Check your site in 30 seconds

Conformly detects this kind of issue across all your pages, continuously, and alerts you on every regression.

Free scan

Other fixes