the-forest/client/node_modules/eslint-plugin-jsx-a11y/docs/rules/lang.md
2024-09-17 20:35:18 -04:00

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