HTML and CSS Reference
In-Depth Information
<td>
10
</td>
<td>
12
</td>
</tr>
<tr>
<th>
East Coast
</th>
<td>
1
</td>
<td>
20
</td>
</tr>
</tbody>
</table>
Compatibility
HTML 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 4+,
Netscape 6+, Opera 5+, Safari 1+
Notes
• This element is found only in a
<table>
tag and contains one or more table rows, as
indicated by
<tr>
tags.
• For XHTML compatibility, the closing
</tbody>
tag must be used with this
element; however, it is optional under traditional HTML as well as HTML5.
<td> (Table Data)
This element specifies a data cell in a table. The element should occur within a table row as
defined by the
tr
element.
Standard Syntax
<td
abbr="abbreviation"
align="center | justify | left | right"
axis="group name"
bgcolor="color name | #RRGGBB" (transitional only)
char="character"
charoff="offset"
class="class name"
colspan="number of columns to span"
dir="ltr | rtl"
headers="space-separated list of associated header
cells' id values"
height="pixels or percentage" (transitional only)
id="unique alphanumeric identifier"
lang="language code"
nowrap="nowrap" (transitional only)
rowspan="number or rows to span"
scope="col | colgroup | row | rowgroup"
style="style information"
title="advisory text"
valign="baseline | bottom | middle | top"
width="pixels or percentage"> (transitional only)
</td>