HTML and CSS Reference
In-Depth Information
<th> and <td>
Function
Define table data and header cells
abbr, align, background, bgcolor, border-
color
,
bordercolordark
,
bordercolor-
light
,
char, charoff, class, colspan,
dir, headers, height, id, lang, nowrap,
onClick, onDblClick, onKeyDown, onKeyPress,
onKeyUp, onMouseDown, onMouseMove,
onMouseOut, onMouseOver, onMouseUp,
rowspan, scope, style, title, valign, width
Attributes
</th>
or
</td>
; may be omitted in HTML
End tag
Contains
body_content
Used in
tr_content
Like those available for the table row (
<tr>
) tag, the table cell tags sup-
port a rich set of style and content-alignment attributes that you may
apply to a single data or header cell. These attributes override the de-
fault values for the current row. Special attributes control the number of
columns or rows a cell may span in the table. The
<th>
and
<td>
tags also
accept the common table attributes described earlier in
section 10.2.2
.