ⓘ td – table cell # T
The
td
element represents
a data cell in a table.
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.
- Identifies one or more
th
elements that apply to its
td.
Additional constraints and admonitions #
-
The scope attribute on the td element is obsolete.
Use the scope attribute on a th element instead.
-
The abbr attribute on the td element is obsolete.
Consider instead beginning the cell contents with concise text, followed by further elaboration if needed.
-
The axis attribute on the td element is obsolete.
Use the scope attribute instead.
-
The align attribute on the td element is obsolete.
Use CSS instead.
-
The width attribute on the td element is obsolete.
Use CSS instead.
-
The char attribute on the td element is obsolete.
Use CSS instead.
-
The charoff attribute on the td element is obsolete.
Use CSS instead.
-
The valign attribute on the td element is obsolete.
Use CSS instead.
-
The bgcolor attribute on the td element is obsolete.
Use CSS instead.
-
The height attribute on the td element is obsolete.
Use CSS instead.
-
The nowrap attribute on the td element is obsolete.
Use CSS instead.
Permitted parent elements #
tr
Typical default display properties #
td {
display: table-cell;
vertical-align: inherit; }