Files
30-seconds-of-code/node_modules/eslint-plugin-jsx-a11y/docs/rules/html-has-lang.md
2019-08-20 15:52:05 +02:00

412 B

html-has-lang

<html> elements must have the lang prop.

References

  1. axe-core, html-has-lang
  2. axe-core, html-lang-valid

Rule details

This rule takes no arguments.

Succeed

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

Fail

<html>