Click to return to the DHTML, HTML     
TABLE Element | TABLE Obj...     TD Element | TD Object     DHTML Objects    
Web Workshop  |  DHTML, HTML & CSS

TBODY Element | TBODY Object


Designates rows as the body of the table.

HTML Syntax

<TBODY
    ALIGN=CENTER | LEFT | RIGHT
    BGCOLOR=color
    CLASS=classname
    ID=value
    LANG=language
    LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS
    STYLE=css1-properties
    TITLE=text
    VALIGN=BASELINE | BOTTOM | CENTER | TOP
    event = script
>

Remarks

Valid tags within the TBODY element include:

This element is exposed for all tables, even if the table does not explicitly define a TBODY element.

The TBODY element is a block element and requires a closing tag.

This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

Members

Styles

Example

This example uses the TBODY element with the TABLE, TD, THEAD, and TR objects to create a table with the first row in the table head and the second row in the table body.

<TABLE>
<THEAD>
<TR>
<TD>
This text is in the THEAD.
</TD>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>
This text is in the TBODY.
</TD>
</TR>
</TBODY>
</TABLE>


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.