Table caption property
Table object
Definition and Usage
The caption property returns the caption element of a table.
The caption element defines the title of a table.
Note: The element defines a table caption. The tag must immediately follow
Syntax
tableObject.caption
Browser support





All major browsers support the caption property
Example
Example
The following example returns the table's
| cell 1 | cell 2 |
| cell 3 | cell 4 |
Try it »
Table object