Prefer to wrap <tr>
inside <tbody>
(prefer-tbody
)
While <tbody>
is optional is relays semantic information about its
contents.
Where applicable it should also be combined with <thead>
and <tfoot>
.
Rule details
Examples of incorrect code for this rule:
<table>
<tr><td>...</td></tr>
</table>
Examples of correct code for this rule:
<table>
<tbody>
<tr><td>...</td></tr>
</tbody>
</table>