<TBODY> | NN n/a IE 3 HTML 4 | ||
<TBODY>...</TBODY> | 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>Event<TH>Location </TR> </THEAD> <TBODY> <TR> <TD>7:30am-5:00pm<TD>Registration Open<TD>Main Lobby </TR> <TR> <TD>9:00am-12:00pm<TD>Keynote Speakers<TD>Cypress Room </TR> </TBODY> </TABLE> | |||
Object Model Reference
|
ALIGN | NN n/a IE 4 HTML 4 | ||||||||||||||||||
ALIGN=" | Optional | ||||||||||||||||||
Establishes the horizontal alignment characteristics of content within the row(s) covered by the TBODY element. The HTML 4.0 specification defines settings for the ALIGN attribute that are not yet reflected in the CSS specification. Therefore, this ALIGN attribute is not fully deprecated as it is for many other elements. As a rule, alignment should be specified by style sheet wherever possible. | |||||||||||||||||||
Example
<TBODY ALIGN="center"> | |||||||||||||||||||
Value HTML 4.0 and IE 4 have two sets of attribute values:
| |||||||||||||||||||
| |||||||||||||||||||
Object Model Reference
|
BGCOLOR | NN n/a IE 4 HTML n/a | ||
BGCOLOR=" | 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. | |||
| |||
Object Model Reference
|
CHAR | NN n/a IE n/a HTML 4 | ||
CHAR=" | Optional | ||
The text character used as an alignment point for text within a cell. This attribute is of value only for the ALIGN attribute set to "char". | |||
Example
<TBODY ALIGN="char" CHAR="."> | |||
Value Any single text character. | |||
|
CHAROFF | NN n/a IE n/a HTML 4 | ||
CHAROFF=" | Optional | ||
Sets a specific offset point at which the character specified by the CHAR attribute is to appear within a cell. This attribute is provided in case the browser default positioning does not meet with the design goals of the table. | |||
Example
<TBODY ALIGN="char" CHAR="." CHAROFF="80%"> | |||
Value Any length value in pixels or percentage of cell space. | |||
|
VALIGN | NN n/a IE 4 HTML 4 | ||
VALIGN=" | 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 are recognized by both IE 4 and HTML 4.0: 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 row--usually the most aesthetically pleasing arrangement. | |||
| |||
Object Model Reference
|