SyntaxStudy
Sign Up

<td>

tag

Defines a data cell in a table. Supports colspan and rowspan for spanning multiple cells.

Syntax

<td colspan="2" rowspan="2">Data</td>

Example

html
<table border="1">
    <tr>
        <td>Cell 1</td>
        <td colspan="2">Spans 2 columns</td>
    </tr>
    <tr>
        <td rowspan="2">Spans 2 rows</td>
        <td>Cell</td>
        <td>Cell</td>
    </tr>
    <tr>
        <td>Cell</td><td>Cell</td>
    </tr>
</table>