HTML and CSS Reference
In-Depth Information
Notes
• 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.
Standard Syntax
<th
abbr="abbreviation"
align="center | justify | left | right"
axis="group name"
bgcolor="color name | #RRGGBB" (transitional only)
char="character"
charoff="offset"
class="class name"
colspan="number"
dir="ltr | rtl"
headers="space-separated list of associated header
cells' id values"
height="pixels" (transitional only)
id="unique alphanumeric identifier"
lang="language code"
nowrap="nowrap" (transitional only)
rowspan="number"
scope="col | colgroup | row | rowgroup"
style="style information"
title="advisory text"
valign="baseline | bottom | middle | top"
width="pixels"> (transitional only)
</th>
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"
data-X="user-defined data"
Search WWH ::




Custom Search