Menu Home

td

osbo.com | HTML | Elements | td

The td HTML element represents a data cell in a table.

Syntax

HTML

<td attribute-name="attribute-value"></td>

Attributes

Global

Name Value Description
colspan positive integer Number of columns that the cell is to span
headers IDREFS The headers for this cell
rowspan non-negative integer Number of rows that the cell is to span

CSS

td {
    display: table-cell;
    vertical-align: inherit;
}

Examples

colspan

headers

rowspan

CSS

Internal

caption

col

colgroup

table

tbody

tfoot

th

thead

tr

External

Web Hypertext Application Technology Working Group (WHATWG)