HTML and CSS Reference
In-Depth Information
Name
th
Synopsis
<th> . . . </th>
Defines a table header cell. Table header cells provide important information and context to
the table cells in the row or column that they precede. They are important for making the in-
formation in tables accessible. In terms of markup, they function the same as table data cells
( td ).
Usage
Categories:
None, unless the th has the sorted attribute and is a sorting interface, then interactive
content
Permitted contexts:
As the child of a tr element
Permitted content:
Flow content, but may not contain header , footer , sectioning content, or heading con-
tent. If the th element is a sorting interface, then it must not contain any interactive con-
tent.
Start/end tags:
HTML: Required/Optional (if followed by a td or th or if the parent element ends);
XHTML: Required/Required
Attributes
HTML5 Global Attributes
Search WWH ::




Custom Search