Menu
The td
tag, or Table Data Cell element, designates a data cell in a <table>
.
The text inside the <td>
tag is regular and left-aligned by default.
<table>
<tr>
<th>This is the heading for the first column</th>
<th>This is the heading for the second column</th>
</tr>
<tr>
<td>First column contents</td>
<td>Second column contents</td>
</tr>
</table>
colspan
Numerical value for the amount of columns a cell should span across.
headers
Using a header cell’s id, designates the header cell(s) the <td>
is related to.
rowspan
Numerical value for the amount of rows a cell should span across.
Have a code example of <td>
? Submit a codepen.io demo and we'll showcase it here ↴