![github-actions[bot]](/assets/img/avatar_default.png)
* 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>
5 lines
399 B
Plaintext
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. |