Skip to main content
All rules

A11Y-001

Page language is not declared

MediumDefault severity · Accessibility · Accessibility (WCAG 2.2 AA)

Last reviewed

What it checks

The lang attribute on the <html> element.

Why it matters

Screen readers may read the page with the wrong voice and pronunciation.

Recommended fix

Add lang="en" (or the correct language code) to the <html> element.

How to verify

View source and confirm <html lang="…"> is present.

Example fix prompt

Generic prompt (your report adds the evidence)
Please fix this production issue in my app.

Issue A11Y-001: Page language is not declared
Site: https://your-app.example

First confirm the issue in the code or live config. If it is not present, say so and change nothing.
Task: Add a lang attribute with the correct language code (for example lang="en") to the root <html> element in the root layout or index.html.

Constraints: make the smallest change that fixes this, keep the current design and behaviour, never paste secret values into code or chat, and tell me which files you changed.
Done when: View source and confirm <html lang="…"> is present.

References