html-has-lang.md 514 B

html-has-lang

elements must have the lang prop.

Rule details

This rule takes no arguments.

Succeed

<html lang="en">
<html lang="en-US">
<html lang={language}>

Fail

<html>

Accessibility guidelines

Resources