source: frontend/node_modules/eslint-plugin-jsx-a11y/docs/rules/lang.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 709 bytes
Line 
1# jsx-a11y/lang
2
3<!-- end auto-generated rule header -->
4
5The `lang` prop on the `<html>` element must be a valid IETF's BCP 47 language tag.
6
7## Rule details
8
9This rule takes no arguments.
10
11### Succeed
12
13```jsx
14<html lang="en">
15<html lang="en-US">
16```
17
18### Fail
19
20```jsx
21<html>
22<html lang="foo">
23```
24
25## Accessibility guidelines
26- [WCAG 3.1.1](https://www.w3.org/WAI/WCAG21/Understanding/language-of-page)
27
28### Resources
29- [axe-core, valid-lang](https://dequeuniversity.com/rules/axe/3.2/valid-lang)
30- [Language tags in HTML and XML](https://www.w3.org/International/articles/language-tags/)
31- [IANA Language Subtag Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)
Note: See TracBrowser for help on using the repository browser.