Name

caption

Synopsis

<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 can be controlled by the align property or by using the preferred caption-side CSS property.

Attributes

Core(id, class, style, title), Internationalization, Events

align="top|bottom|left|right"

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

Get Web Design in a Nutshell, 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.