<TBODY> | NN 6 IE 3 HTML 4 | |||||||||
<TBODY>...</TBODY> | HTML End Tag: Optional | |||||||||
A tbody element is an arbitrary container of one or more rows of table cells. More than one tbody element may be defined within a single table element. Use the tbody element to define structural segments of a table that may require their own styles or border treatments (see the rules attribute). A tbody element is the row-oriented equivalent of the colgroup element for columns. Other types of row groupings available are the tfoot and thead elements, neither of which overlaps with a tbody element. |
||||||||||
Example | ||||||||||
<TABLE cols="3"> <THEAD> <TR> <TH>Time</TH><TH>Event</TH><TH>Location</TH> </TR> </THEAD> <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 tbody element. |
|
Example | |
<TBODY 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's important to bear in mind that the align attribute applies to every cell of every row within the tbody, 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 thead or 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 tbody element. |
|
Example | |
<TBODY 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 tbody 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 | |
<TBODY 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 tbody 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 | |
<TBODY 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 tbody element. You can override the vertical alignment for a particular cell anywhere in the column. |
|
Example | |
<TBODY 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
|