HTML and CSS Reference
In-Depth Information
Name
td
Synopsis
<td> . . . </td>
Defines a table data cell. A table cell may contain any content, including another table.
Usage
Categories:
Sectioning root
Permitted contexts:
As the child of a
tr
element
Permitted content:
Flow content
Start/end tags:
HTML: Start tag required. End tag is optional if followed by
<td>
or
<th>
or end tag of
parent element; XHTML: Required/Required
Attributes
HTML5 Global Attributes
colspan="
number
number
"
Specifies the number of columns the current cell should span. The default value is 1.
headers="
id reference
id reference
"
Lists header cells (by
id
value) that provide header information for the current data cell.
This is intended to make tables more accessible to nonvisual browsers.