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:

error: Prefer to wrap <tr> elements in <tbody> (prefer-tbody) at inline:2:3:
  1 | <table>
> 2 | 	<tr><td>...</td></tr>
    | 	 ^^
  3 | </table>

1 error found.

Examples of correct code for this rule: