The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <TH> | Next Tag: <TITLE> |


<THEAD>

A container tag that identfies the header of a table.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported
Notes:
  • The table footer appears below the table body. See also <TFOOT> and <TBODY>.
  • This tag requires the </THEAD> end tag.
Attributes:
ALIGN = "Text"
The horizontal alignment of text within the table header.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • Possible values: LEFT, CENTER, RIGHT, JUSTIFY, CHAR. (CHAR aligns text on a specified character, such as a decimal point.)

BGCOLOR = "Color value"
The color to use for the table header background.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 4.0 and later Not supported

Notes:

  • Use either an RGB value or a color name.
  • Try to use a color that's compatible with the color you're using for your table text.

CHAR = "Text (single character)"
The common character upon which each cell in the table header will be aligned.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • The default character is the decimal point.

CHAROFF = Positive integer
The amount of space, in pixels, between the header's left edge and the first occurrence of the character specified by CHAR.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • If you use the <BDO> tag to change the text direction to right-to-left, then this offset is measured from the right edge of the header.

CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

VALIGN = "Text"
The vertical alignment of text within the table header.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • Possible values: TOP, MIDDLE, BOTTOM, BASELINE.

Example:
<TABLE BORDER=2 HEIGHT=50 RULES="ROWS">
<CAPTION ALIGN=LEFT>Some of my favorite U.S. college nicknames.</CAPTION>
<COLGROUP ALIGN="LEFT" SPAN=3>
</COLGROUP>
<COLGROUP ALIGN="RIGHT" SPAN=2>
</COLGROUP>

<THEAD BGCOLOR="Silver">
<TR>
<TH>School</TH>
<TH>Nickname</TH>
<TH>Conference</TH>
<TH>Record<SUP>*</SUP></TH>
<TH>Percentage</TH>
</TR>
</THEAD>

<TFOOT BGCOLOR="Silver">
<TR>
<TD COLSPAN=5)
<SUP>*</SUP>These are basketball records from 1992(!).
</TD>
</TFOOT>

<TBODY>
<TR>
<TD>Delaware</TD>
<TD>Fightin' Blue Hens</TD>
<TD>North Atlantic</TD>
<TD>27-3</TD>
<TD>90.0 %</TD>
</TR>
<TR>
<TD>Hawaii</TD>
<TD>Rainbow Warriors</TD>
<TD>W. Athletic</TD>
<TD>16-12</TD>
<TD>57.14 %</TD>
</TR>

<TR>
<TD>Kent State</TD>
<TD>Golden Flashes</TD>
<TD>Mid-American</TD>
<TD>9-19</TD>
<TD>32.1 %</TD>
</TR>

<TR>
<TD>Marshall</TD>
<TD>Thundering Herd</TD>
<TD>Southern</TD>
<TD>7-22</TD>
<TD>24.14 %</TD>
</TR>

<TR>
<TD>Minnesota</TD>
<TD>Golden Gophers</TD>
<TD>Big Ten</TD>
<TD>16-15</TD>
<TD>51.61 %</TD>
</TR>

<TR>
<TD>Purdue</TD>
<TD>Boilermakers</TD>
<TD>Big Ten</TD>
<TD>16-14</TD>
<TD>53.33 %</TD>
</TR>

<TR>
<TD>S. Carolina</TD>
<TD>Fighting Gamecocks</TD>
<TD>Southeastern</TD>
<TD>11-17</TD>
<TD>39.29 %</TD>
</TR>

<TR>
<TD>S. Illinois</TD>
<TD>Salukis</TD>
<TD>Missouri Valley</TD>
<TD>22-7</TD>
<TD>75.86 %</TD>
</TR>

<TR>
<TD>Texas Christian</TD>
<TD>Horned Frogs</TD>
<TD>Southwest</TD>
<TD>22-10</TD>
<TD>68.75 %</TD>
</TR>

<TR>
<TD>W. Illinois</TD>
<TD>Leathernecks</TD>
<TD>Mid-Continent</TD>
<TD>10-18</TD>
<TD>35.71 %</TD>
</TR>
</TBODY>

</TABLE>
How It Looks:
Some of my favorite U.S. college nicknames.
School Nickname Conference Record* Percentage
*These are basketball records from 1992(!).
Delaware Fightin' Blue Hens North Atlantic 27-3 90.0 %
Hawaii Rainbow Warriors W. Athletic 16-12 57.14 %
Kent State Golden Flashes Mid-American 9-19 32.1 %
Marshall Thundering Herd Southern 7-22 24.14 %
Minnesota Golden Gophers Big Ten 16-15 51.61 %
Purdue Boilermakers Big Ten 16-14 53.33 %
S. Carolina Fighting Gamecocks Southeastern 11-17 39.29 %
S. Illinois Salukis Missouri Valley 22-7 75.86 %
Texas Christian Horned Frogs Southwest 22-10 68.75 %
W. Illinois Leathernecks Mid-Continent 10-18 35.71 %

| Index | Previous Tag: <TH> | Next Tag: <TITLE> |