Name

caption — <caption> . . . </caption>

Provides a brief summary of the table’s contents or purpose. The caption must immediately follow the table start tag and precede all other table elements. The width of the caption is determined by the width of the table. The caption’s position as displayed in the browser can be controlled with the deprecated align attribute or by using the preferred CSS caption-side property.

Attributes

Core,Internationalization,Events

align="top|bottom|left|right"

Deprecated. Positions the caption relative to the table. The default position is top.

Example

<table>
<caption>A brief description of the data in this table </caption>
<tr>
    <td>data</td><td>data</td>
</tr>
</table>

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.