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>

 

> back to the alphabetical list of elements

   

 

 

 

back to top