THEAD Element | THEAD Object

DHTML, HTML, & CSS

THEAD Element | THEAD Object


Designates rows as the table's header.

HTML Syntax

<THEAD
    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 THEAD element include:

The THEAD 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 TFOOT element with the TABLE, TBODY, TD, and TR objects to create a table with the first row in the table header and the second row in the table body.

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

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.