HTML <td> table data cell Tag Reference

The td HTML tag means table data cell, and it's the building block of a table.

Use it whenever you want to display actual data in a table.

The <td> HTML/xHTML tag

The table data cell  can contain any kind of tabular data. They can be left empty if there is no data to fill them.

When to use the <td> tag (semantic use)

Use the table data cell only for actual data. If a cell contains an identifier for a row or column, you should use <th>

It's valid in all current versions of HTML and xHTML, and it should always have a closing </td> tag.

Example of <td> tag use

<table>
    <thead>
        <tr>
            <th>This is a table header cell</th>
            <th>This is a table header cell</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>This is a table data cell</td>
            <td>This is a table data cell</td>
        </tr>
        <tr>
            <td>This is a table data cell</td>
            <td>This is a table data cell</td>
        </tr>
    </tbody>
</table>

Alternatives to the <td> tag

You may also consider using:

<th>
When the cell contains a descriptor or identifier for a row or column