rspec/rules/S5257/why.adoc
github-actions[bot] 0e7442f08f
Create rule S5257 (#3882)
* Add javascript to rule S5257

* Add S5257 to JS

* add react tag

---------

Co-authored-by: vdiez <vdiez@users.noreply.github.com>
Co-authored-by: Victor <victor.diez@sonarsource.com>
2024-04-16 15:54:20 +02:00

5 lines
399 B
Plaintext

== Why is this an issue?
HTML <table> elements should not be used for layout purposes as it can confuse screen readers. It is recommended to use CSS instead.
This rule raises an issue on every ``++<table>++`` element containing a ``++role++`` attribute set to ``++"presentation"++`` or ``++"none"++``, which is how https://www.w3.org/WAI/tutorials/tables/tips/[W3C recommends] marks layout tables.