Skip to main content

HTML Guide

Stray start tag “td”.

A td (table cell) start tag must be placed inside a tr (table row) within a table.

The td element represents a cell of a table that contains data. According to HTML specifications, a td must be a child of a tr, which in turn must be a child of a table. Placing a td directly outside a tr or outside a table is invalid and causes the “stray start tag ‘td’” error in the W3C Validator.

Incorrect usage:

<table>
  <td>Cell data</td>
</table>

In the above example, the td is not inside a tr.

Correct usage:

<table>
  <tr>
    <td>Cell data</td>
  </tr>
</table>

Here, the td is nested inside a tr, which is correctly within a table. This will resolve the validation error.

Learn more:

Related W3C validator issues