jump

HTML: The Markup Language (an HTML language reference)

tdtable cell # T

The td element represents a data cell in a table.

Permitted contents #

Permitted attributes #

global attributes
Any attributes permitted globally.
colspan = positive integer #
Specifies the number of adjacent columns “spanned” by its td element.
rowspan = non-negative integer #
Specifies the number of following rows “spanned” by its td element.
headers = list of ID references #
Identifies one or more th elements that apply to its td.

Additional constraints and admonitions #

Tag omission #

A td element must have a start tag.

A td element’s end tag may be omitted if the td element is immediately followed by a td or th element, or if there is no more content in the parent element.

Permitted parent elements #

tr

DOM interface #

interface HTMLTableDataCellElement : HTMLTableCellElement {};

Typical default display properties #

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