HTML and CSS Reference
• This element is contained only by the table element and contains table rows as
delimited by tr elements.
• While it would seem that this element should come after a <tbody> tag, it actually
should come before it, within a <table> tag.
• Under the XHTML 1.0 specification, the closing </tfoot> tag ceases to be optional.
<th> (Table Header)
This element specifies a header cell in a table. The element should occur within a table row
as defined by a tr element. The main visual difference between this element and td is that
browsers might render table headers slightly differently, usually bolding and centering
contents. However, the element is logical in nature and should be used to structure tables.
align="center | justify | left | right"
bgcolor="color name | #RRGGBB" (transitional only)
dir="ltr | rtl"
headers="space-separated list of associated header
cells' id values"
height="pixels" (transitional only)
id="unique alphanumeric identifier"
nowrap="nowrap" (transitional only)
scope="col | colgroup | row | rowgroup"
valign="baseline | bottom | middle | top"
width="pixels"> (transitional only)
Nonstandard Attributes Commonly Supported
background="URL of image file"
bordercolor="color name | #RRGGBB"
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"