HTML and CSS Reference
In-Depth Information
<thead>
Function
Defines a table header
align, char, charoff, class, dir, id, lang,
onClick, onDblClick, onKeyDown, onKeyPress,
onKeyUp, onMouseDown, onMouseMove,
onMouseOut, onMouseOver, onMouseUp, style,
title, valign
Attributes
</thead>
; may be omitted in HTML
End tag
Contains
table_content
Used in
table_content
The ending
</thead>
tag is optional for HTML. Because the
<thead>
tag
appears only in tables where, presumably, other rows are designated as
the table body or footer, browsers automatically close the
<thead>
tag
when they encounter a
<tbody>
or
<tfoot>
tag or when the table ends.
The many attributes of the
<thead>
tag operate identically, take the same
values, and affect all the enclosed
<tr>
contents as though you had spe-
cified them individually for each
<tr>
enTRy. For example, the
align
at-
tribute accepts values of
left, right
, or
center
, controlling the horizontal
alignment of text in all of the heading's rows. Similarly, the
valign
attrib-