UNPKG

@hint/hint-axe

Version:

hint that that checks using axe for accessibility related best practices

33 lines (24 loc) 1.68 kB
<!-- autogenerated by scripts/create/create-docs.js --> <!-- markdownlint-disable MD013 --> # Axe: Tables (`tables`) `axe/tables` contains accessibility rules from the axe tables 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) * [Table cells that use the headers attribute must only refer to cells in the same table][td-headers-attr] (td-headers-attr) * [Table headers in a data table must refer to data cells][th-has-data-cells] (th-has-data-cells) ## Additional rules (off by default) * [scope attribute should be used correctly][scope-attr-valid] (scope-attr-valid) * [tables should not have the same summary and caption][table-duplicate-name] (table-duplicate-name) * [Data or header cells must not be used to give caption to a data table.][table-fake-caption] (table-fake-caption) * [Non-empty \<td> elements in larger \<table> must have an associated table header][td-has-header] (td-has-header) <!-- Link labels: --> [can configure]: https://webhint.io/docs/user-guide/hints/hint-axe/#can-the-hint-be-configured [scope-attr-valid]: https://dequeuniversity.com/rules/axe/4.4/scope-attr-valid [table-duplicate-name]: https://dequeuniversity.com/rules/axe/4.4/table-duplicate-name [table-fake-caption]: https://dequeuniversity.com/rules/axe/4.4/table-fake-caption [td-has-header]: https://dequeuniversity.com/rules/axe/4.4/td-has-header [td-headers-attr]: https://dequeuniversity.com/rules/axe/4.4/td-headers-attr [th-has-data-cells]: https://dequeuniversity.com/rules/axe/4.4/th-has-data-cells