2024-08-20 23:25:37 +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