github-pages-deploy-action/node_modules/eslint-plugin-jsx-a11y/docs/rules/lang.md
2020-03-06 22:45:40 -05:00

520 B

lang

The lang prop on the <html> element must have a valid value based on ISO country and language codes.

References

  1. axe-core, valid-lang
  2. ISO Language Codes
  3. ISO Country Codes

Rule details

This rule takes no arguments.

Succeed

<html lang="en">
<html lang="en-US">

Fail

<html>
<html lang="foo">