Menu Home

caption

osbo.com | HTML | Elements | caption

The caption HTML element represents the title of the table that is its parent, if it has a parent and that is a table element.

Syntax

HTML

<caption attribute-name="attribute-value"></caption>

Attributes

Global

CSS

caption {
    display: table-caption;
    text-align: center;
}

Examples

Internal

col

colgroup

table

tbody

td

tfoot

th

thead

tr

External

Web Hypertext Application Technology Working Group (WHATWG)