securityos/node_modules/eslint-plugin-jsx-a11y/docs/rules/lang.md

709 B

jsx-a11y/lang

The lang prop on the <html> element must be a valid IETF's BCP 47 language tag.

Rule details

This rule takes no arguments.

Succeed

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

Fail

<html>
<html lang="foo">

Accessibility guidelines

Resources