Javatpoint Logo
Javatpoint Logo

HTML <caption> tag

HTML <caption> tag is used to add a caption or title of an HTML table. It should be used inside the <table> element and just after the <table> start tag. A table may contain only one <caption> element.


Following are some specifications about the <caption> tag

Display Inline
Start tag/End tag Both start and End tag
Usage textual

Example 1

Test it Now


HTML caption tag


Tag-specific Attributes

Attribute Value Description
  • top
  • bottom
  • left
  • right
It aligns the caption with respect to table

Global Attributes

The <caption> tag supports the Global attributes

Event Attributes

The <caption> tag supports the event attributes.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML Center Tag

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA