lang
The lang
prop on the <html>
element must have a valid value based on ISO country and language codes.
References
- axe-core, valid-lang
- ISO Language Codes
- ISO Country Codes
Rule details
This rule takes no arguments.
Succeed
<html lang="en">
<html lang="en-US">
Fail
<html>
<html lang="foo">