The Web Design Group

TH - Header cell


This element is also available in our updated HTML 4 reference. Some characteristics may have changed.

Appearance: <TH> [</TH>]
Attributes: ROWSPAN=n, COLSPAN=n, NOWRAP, ALIGN=left|right|center, VALIGN=top|middle|bottom, WIDTH=n, HEIGHT=n
Contents: H1, H2, H3, H4, H5, H6, P, UL, OL, DIR, MENU, PRE, DL, DIV, CENTER, BLOCKQUOTE, FORM, HR, TABLE, ADDRESS as well as TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, A, APPLET, IMG, FONT, BASEFONT, BR, MAP, INPUT, SELECT, TEXTAREA and plain text.
May occur in: TR.

Like the TD tag, a TH is used for a table cell. However, TH should be used when the cell's contents is a table heading, not a data cell. Typically this is done when the contents of the cell is a label for a row or column in the table.

See the section on TD for an explanation of the various attributes.

For an example on how to construct tables, please see the section on the TABLE tag.

Notes:

HTML 3.2 Reference  ~ Elements by Function  ~ Elements Alphabetically


Home, Forums, Reference, Tools, FAQs, Articles, Design, Links

Copyright © 1996 - 2006. Web Design Group All rights reserved.