# <html> element must have a valid value for the lang attribute

Source: https://www.fixreports.com/issues/html-lang-valid

WCAG 3.1.1 Language of Page · Level A

The page's language code isn't valid, so screen readers can't pick the right voice.

## What this rule checks
Ensure the lang attribute of the <html> element has a valid value.

## Why it matters
WCAG 3.1.1 requires the page language to be set with a valid code.

## How to fix it
### On any website
1. Change the lang attribute on the <html> element to a valid code such as "en" or "en-US".

### On Shopify
1. Change the lang attribute on the <html> element to a valid code such as "en" or "en-US".

### On WooCommerce and WordPress
1. Change the lang attribute on the <html> element to a valid code such as "en" or "en-US".

## How to check the fix
- Re-scan and confirm html-lang-valid passes.

## Sources
- axe-core rule documentation (Deque): https://dequeuniversity.com/rules/axe/4.13/html-lang-valid
- Understanding WCAG 3.1.1 (W3C): https://www.w3.org/WAI/WCAG22/Understanding/language-of-page
