The <th> element defines table header cells.
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 4, 5, 6, 7, 8
- Safari 1
- WebTV / MSNTV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0: XHTML Basic Tables Module, XHTML Tables Module
- onclick (optional)
- ondblclick (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmousemove (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- style (optional)
- title (optional)
- valign (optional)
- width (optional) DEPRECATED
Usually text. The following tags are valid within the <th> tag:
a, abbr, acronym, address, applet, b, basefont, bdo, big, blockquote, br, button, center, cite, code, dfn, dir, div, dl, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, img, input, isindex, kbd, label, map, menu, noframes, noscript, object, ol, p, pre, q, s, samp, script, select, small, span, strike, strong, sub, sup, table, textarea, tt, u, ul, var
The <th> tag is valid within the following tags:
tr
- basic table
<table border width="200">
<tr><th>
header 1
</th><td>
column 2
</td></tr>
</table>
- The default look and feel of a header cell is usually centered with bold text.
- While you can omit the ending tag, tables are easier to read when they are present, and it gives you better control over style tags.
- When using nested tables, if the th tags are not closed, the browsers may become confused as to which table elements go with which table.

