HTML tag
Example
A table with a caption:
<
table
border
=
"
1
"
<
captionMonthly savings
caption
<
tr
<
th
Month
th
<
th
Savings
th
tr
<
tr
<
td
January
td
<
td
$100
td
tr
tableTry it »
Browser support

All major browsers support the tag.
Tag Definition and Usage Notes
The tag defines the caption of a table. The tag must be placed directlyYou can define only one caption for each table.
**Tip:** Usually this caption is centered above the table. However, the CSS properties "text-align" and "caption-side" can be used to set the alignment and display position of the caption.
Differences between HTML 4.01 and HTML5
HTML5 does not support the align attribute.
HTML 4.01 Deprecated. the align attribute.
property
| property | Value | Description |
|---|---|---|
| align | left |
right
top
bottom | HTML5 does not support。HTML 4.01 已废弃。 定义标题的对齐方式。 |