<THEAD> | NN 6 IE 3 HTML 4 | |||||||||
<THEAD>...</THEAD> | HTML End Tag: Optional | |||||||||
A thead element is a special-purpose container of one or more rows of table cells rendered at the top of the table. No more than one thead element may be defined within a single table element, and the thead element should be located in the source code immediately after the table element's start tag. You are free to use any combination of td and th elements you like within the thead element. A thead element is a row grouping, like the tbody and tfoot elements. Navigator 4 ignores the thead tag and therefore renders the nested tr element(s) as regular tr elements in source code order. |
||||||||||
Example | ||||||||||
<TABLE cols="3"> <THEAD> <TR> <TH>Time</TH><TH>Event</TH><TH>Location</TH> </TR> </THEAD> <TFOOT> <TR> <TH>Time</TH><TH>Event</TH><TH>Location</TH> </TR> </TFOOT> <TBODY> <TR> <TD>7:30am-5:00pm</TD><TD>Registration Open</TD><TD>Main Lobby</TD> </TR> <TR> <TD>9:00am-12:00pm</TD><TD>Keynote Speakers</TD><TD>Cypress Room</TD> </TR> </TBODY> </TABLE> |
||||||||||
Object Model Reference | ||||||||||
[window.]document.getElementById(elementID)
|
||||||||||
Element-Specific Attributes | ||||||||||
|
||||||||||
Element-Specific Event Handler Attributes | ||||||||||
None. |
align | NN 6 IE 4 HTML 4 |
align="alignConstant" | Optional |
Establishes the horizontal alignment characteristics of content within the row(s) covered by the thead element. |
|
Example | |
<THEAD align="center"> |
|
Value | |
HTML 4 and various browsers implement different sets of attribute values. The values center, left, and right are self-explanatory. The value justify spaces multiline content so that text is justified down both left and right edges. For the value char, the char attribute must also be set to specify the character on which alignment revolves. In the HTML 4 specification example, content that does not contain the character appears to be right-aligned to the location of the character in other rows of the same column. It is important to bear in mind that the align attribute applies to every cell of every row within the thead, including any th element you specify for the table. If you want a different alignment for the row header, override the setting with a separate align attribute or text-align style sheet attribute for the individual th elements. |
|
Default | |
left |
|
Object Model Reference | |
[window.]document.getElementById(elementID).align
|
bgcolor | NN 6 IE 4 HTML n/a |
bgcolor="colorTripletOrName" | Optional |
Establishes a fill color (behind the text and other content) for the cells contained by the thead element. |
|
Example | |
<THEAD bgcolor="tan"> |
|
Value | |
A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black). See Appendix A for acceptable plain-language color names. |
|
Default | |
Varies with browser, browser version, and operating system. |
|
Object Model Reference | |
[window.]document.getElementById(elementID).bgColor
|
char | NN 6 IE n/a HTML 4 |
char="character" | Optional |
The char attribute defines the text character used as an alignment point for text within a cell contained by the thead element. This attribute is of value only for the align attribute set to "char". Microsoft documents a ch attribute, which corresponds to the standards-based char attribute. In any case, the browser does not respond to either attribute. Netscape 7 has not yet connected support for the char attribute. |
|
Example | |
<THEAD align="char" char="."> |
|
Value | |
Any single text character. |
|
Default | |
None. |
charoff | NN 6 IE n/a HTML 4 |
charoff="length" | Optional |
The charoff attribute lets you set a specific offset point at which the character specified by the char attribute is to appear within a cell contained by the thead element. This attribute is provided in case the browser default positioning does not meet with the design goals of the table. Microsoft documents a choff attribute, which corresponds to the standards-based charoff attribute. In any case, the browser does not respond to either attribute. Netscape 7 has not yet connected support for the charoff attribute. |
|
Example | |
<THEAD align="char" char="." charoff="80%"> |
|
Value | |
Any length value in pixels or percentage of cell space. |
|
Default | |
None. |
choff | |
See charoff. |
lang | NN 3 IE 4 HTML 4 |
lang="languageCode" | Optional |
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices. |
|
Example | |
<SPAN lang="de">Deutsche Bundesbahn</SPAN> |
|
Value | |
Case-insensitive language code. |
|
Default | |
Browser default. |
|
Object Model Reference | |
[window.]document.getElementById(elementID).lang
|
valign | NN 6 IE 4 HTML 4 |
valign="alignmentConstant" | Optional |
Determines the vertical alignment of content within cells of the column(s) covered by the thead element. You can override the vertical alignment for a particular cell anywhere in the column. |
|
Example | |
<THEAD valign="bottom"> |
|
Value | |
Four constant values: top | middle | bottom | baseline. With top and bottom, the content is rendered flush (or very close to it) to the top and bottom of the table cell. Set to middle (the default), the content floats perfectly centered vertically in the cell. When one cell's contents might wrap to multiple lines at common window widths (assuming a variable table width), it is advisable to set the valign attribute to baseline. This assures that the character baseline of the first (or only) line of a cell's text aligns with the other cells in the rowusually the most aesthetically pleasing arrangement. |
|
Default | |
middle |
|
Object Model Reference | |
[window.]document.getElementById(elementID).vAlign
|