TH - Header cell
n, NOWRAP, ALIGN=left|right|center, VALIGN=top|middle|bottom, WIDTH=
||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:
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.
- While it's not strictly required, it is good practice to close each
table cell explicitly. It makes your table easier to read.
- If you include a table inside a table cell, be sure to close all
cells and rows. It is not required, but some browsers get the nested tables
wrong and render them incorrectly.
- An empty cell is usually rendered differently than a cell with
just whitespace inside it. This especially shows if you have a border
defined for your table.
- If you use images in a table cell, be sure to specify the WIDTH
and HEIGHT attributes in the IMG tag. This allows the browser to
determine the size of the cell in advance, so it can draw the table
before the image is loaded. Otherwise, the table will not appear until
the image has been loaded. This can mean a considerable delay before
your page displays.
Reference index ~
Wilbur index ~
Tag overview ~
Copyright © 1997 Arnoud "Galactus" Engelfriet.