Easy Tutorial
❮ Met Element Removeattributenode Prop Doc Baseuri ❯

Table caption Attribute


Definition and Usage

The caption attribute returns the caption element of the table.

The caption element defines the title of the table.

Note: The <caption> element defines a table title. The <caption> tag must be immediately after the <table> tag, and each table can only have one caption. Typically, the caption is positioned centered above the table.

Syntax


Browser Support

All major browsers support the caption attribute.


Example

Example

The following example returns the text of the <caption> element of the table:


❮ Met Element Removeattributenode Prop Doc Baseuri ❯