The caption element defines nature or character of a table.

The caption may be inserted only directly under <table> tag.

Syntax:

<table><caption></caption><tr><td></td></tr></table>

Attributes:

Example

HTML table with caption element:

 

›› go to examples ››