Skip to main content
HTML Validation

Stray start tag “td”.

About This HTML Issue

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.

Last reviewed: July 31, 2025

Was this guide helpful?

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Ready to validate your sites?
Start your free trial today.