UNPKG

@hint/hint-axe

Version:

hint that that checks using axe for accessibility related best practices

26 lines (19 loc) 1.21 kB
<!-- autogenerated by scripts/create/create-docs.js --> <!-- markdownlint-disable MD013 --> # Axe: Language (`language`) `axe/language` contains accessibility rules from the axe language category. See the ["Can the hint be configured?"][can configure] section of `hint-axe` for examples of enabling, disabling, and changing the severity of individual rules. ## Default rules (WCAG 2.1 Level A and Level AA) * [\<html> element must have a lang attribute][html-has-lang] (html-has-lang) * [\<html> element must have a valid value for the lang attribute][html-lang-valid] (html-lang-valid) * [HTML elements with lang and xml:lang must have the same base language][html-xml-lang-mismatch] (html-xml-lang-mismatch) * [lang attribute must have a valid value][valid-lang] (valid-lang) <!-- Link labels: --> [can configure]: https://webhint.io/docs/user-guide/hints/hint-axe/#can-the-hint-be-configured [html-has-lang]: https://dequeuniversity.com/rules/axe/4.4/html-has-lang [html-lang-valid]: https://dequeuniversity.com/rules/axe/4.4/html-lang-valid [html-xml-lang-mismatch]: https://dequeuniversity.com/rules/axe/4.4/html-xml-lang-mismatch [valid-lang]: https://dequeuniversity.com/rules/axe/4.4/valid-lang