You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
412 B
25 lines
412 B
5 years ago
|
# html-has-lang
|
||
|
|
||
|
<html> elements must have the lang prop.
|
||
|
|
||
|
#### References
|
||
|
1. [axe-core, html-has-lang](https://dequeuniversity.com/rules/axe/3.2/html-has-lang)
|
||
|
1. [axe-core, html-lang-valid](https://dequeuniversity.com/rules/axe/3.2/html-lang-valid)
|
||
|
|
||
|
## Rule details
|
||
|
|
||
|
This rule takes no arguments.
|
||
|
|
||
|
### Succeed
|
||
|
```jsx
|
||
|
<html lang="en">
|
||
|
<html lang="en-US">
|
||
|
<html lang={language}>
|
||
|
```
|
||
|
|
||
|
### Fail
|
||
|
|
||
|
```jsx
|
||
|
<html>
|
||
|
```
|