rspec/rules/S5256/how.adoc
github-actions[bot] b64b26b71a
Create rule S5256 (#3886)
* Add javascript to rule S5256

* [JS-3] Add Rspec

---------

Co-authored-by: zglicz <zglicz@users.noreply.github.com>
Co-authored-by: Michal Zgliczynski <michal.zgliczynski@sonarsource.com>
2024-04-18 11:38:03 +02:00

9 lines
439 B
Plaintext

== How to fix it
The first `<tr>` of the table should contain `<th>` elements, with the appropriate description of what the data in those columns represents.
=== Going the extra mile
Headers should be properly associated with the corresponding `<td>` cells by using either a `scope` attribute or `headers` and `id` attributes.
See https://www.w3.org/WAI/tutorials/tables/tips/[W3C WAI Web Accessibility Tutorials] for more information.