XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / th
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
th
HTML 4.01 | HTML 5 |
<th> ... </th>
Defines a data cell in a table header. Header cells contain important information and provide context for the table cells in the column or row they precede. They are an important means of making table information accessible to nonvisual browsers. In terms of markup, header cells work just like ordinary table cells (td).
Start/end tag
HTML: required/optional; XHTML: required/required
Attributes
The element th accepts the same attributes as the td element.
Example
<table>
<tr><th>Planet</th><th>Entfernung von der Erde</th></tr>
<tr><td>Venus</td><td>verdammt weit weg</td></tr>
<tr><td>Neptun</td><td>unglaublich weit weg</td></tr>
</table>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de