HTML <caption> Tag


The <caption> HTML tag is used to provide a title or description for a table in a web page. Placed immediately after the opening <table> tag, it helps to clarify the content and purpose of the table for users and search engines. Typically displayed above or below the table, the <caption> tag is essential for improving accessibility and understanding the data presented within the table, making it a valuable tool for structuring and organizing tabular information on the web.


Permitted Parents
A <table> element, as its first descendant
Inline and text
Start/End Tags
Start tag: required, End tag: required


<table border="1">
<caption>Monthly savings</caption>


Attribute Definition

Specifies the alignment of the caption.
Possible Values:

  • left
  • right
  • top
  • bottom

Global Attributes

The <caption> tag also supports the Global Attributes in HTML5

Event Attributes

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

Browser Support

The following table will show you the current browser support for the HTML <caption> tag.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 30th September 2023