HTML5 <caption> Tag


A table with a caption:

  <caption>Monthly savings</caption>

Try it yourself »

Definition and Usage

The <caption> tag defines a table caption.

The <caption> tag must be inserted immediately after the <table> tag.

You can specify only one caption per table.

Usually the caption will be centered above the table.

Differences Between HTML 4.01 and HTML5

The "align" attribute which was deprecated in HTML 4.01, is not supported in HTML5. Use CSS instead.

Standard Attributes

The <caption> tag also supports the Standard Attributes in HTML5.

Event Attributes

The <caption> tag also supports the Event Attributes in HTML5.