<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
IE [window.]document.all.elementID
ALIGNNN n/a   IE 4   HTML 4
ALIGN="alignConstant"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:
Value IE 4 HTML 4.0
center
* *
char
- *
justify
- *
left
* *
right
* *
The values center, left, and right are self-explanatory. The value justify is intended to space 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.0 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 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
IE [window.]document.all.elementID.align
BGCOLORNN n/a   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
IE [window.]document.all.elementID.bgColor
CHARNN n/a   IE n/a   HTML 4
CHAR="character"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.
 
Default None.
CHAROFFNN n/a   IE n/a   HTML 4
CHAROFF="length"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.
 
Default None.
VALIGNNN n/a   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 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.
 
Default middle
 
Object Model Reference
IE [window.]document.all.elementID.vAlign
Hosted by uCoz