UNPKG

@hint/hint-axe

Version:

hint that that checks using axe for accessibility related best practices

31 lines (22 loc) 1.35 kB
<!-- autogenerated by scripts/create/create-docs.js --> <!-- markdownlint-disable MD013 --> # Axe: Forms (`forms`) `axe/forms` contains accessibility rules from the axe forms 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) * [autocomplete attribute must be used correctly][autocomplete-valid] (autocomplete-valid) * [Form field must not have multiple label elements][form-field-multiple-labels] (form-field-multiple-labels) * [Form elements must have labels][label] (label) * [Select element must have an accessible name][select-name] (select-name) ## Additional rules (off by default) * [Form elements should have a visible label][label-title-only] (label-title-only) <!-- Link labels: --> [can configure]: https://webhint.io/docs/user-guide/hints/hint-axe/#can-the-hint-be-configured [autocomplete-valid]: https://dequeuniversity.com/rules/axe/4.4/autocomplete-valid [form-field-multiple-labels]: https://dequeuniversity.com/rules/axe/4.4/form-field-multiple-labels [label]: https://dequeuniversity.com/rules/axe/4.4/label [label-title-only]: https://dequeuniversity.com/rules/axe/4.4/label-title-only [select-name]: https://dequeuniversity.com/rules/axe/4.4/select-name