lang.md 659 B

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