XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / caption

(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

   

HTML 4.01 | HTML 5

caption

<caption> ... </caption>

Contains a table caption. The caption element must immediately follow the opening table tag and precede all other table elements. The attribute align is deprecated. Instead, the CSS property caption-side should be used to position the caption.

Notes

In HTML 5, if the table is inside a dd element, as part of a figure defined with figure, you must use the following element for the caption instead: dt.

Start/end tag

Required/required

Attributes

Core, internationalization, events, global HTML 5 attributes

  • align="top|bottom|left|right"

    Deprecated. Not in HTML 5. Specifies where the caption appears relative to the table, above or below it. The default is top.

Example

<table>
<caption>Eine kurze Beschriftung für diese Tabelle.</caption>
<tr>
  <td>Daten</td><td>Noch mehr Daten</td>
</tr>
</table>

 

> back to the alphabetical list of elements

   

 

 

 

back to top