HTML Reference Guide


Tag Index| Content List| HTML FAQ

<TH> ... </TH> TABLE HEADING

Description:

Defines a table header cell. By default the text in this cell is bold and centered. Table header cells may contain other attributes to determine the characteristics of the cell and /or its contents.

Attributes:

align - specifies whether the caption appears at the top or bottom of the table.

valign - default vertical alignment for the entire row, including top, bottom, middle.

width/height - dimensions for the cell; may be in pixel value or percentage of the table.

colspan - specifies the number of columns for that cell to span or cross.

rowspan - specifies the number of rows for that cell to span or cross.

Example code:

<TABLE>
<CAPTION>Teachers Name List</CAPTION>
<TR>
<TH> Name</TH>
</TR>
<TR>
<TD>Joe Blow</TD>
<TD>Middle School</TD>
</TR>
<TR>
<TD>Susan Planter</TD>
<TD>Southern High</TD>
</TR>
</TABLE>

Result:

Teachers Name List
Name 
Joe BlowMiddle School
Sarah PlanterSouthern High

See Also:

Caption
Table
Table Data
Table Head
Table Row