CSS Portal

HTML <figcaption> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <figcaption> element in HTML is used to provide a caption or descriptive text for a <figure> element. The <figure> element is typically used to group self-contained content such as images, illustrations, diagrams, code snippets, or other media, and <figcaption> gives this content context by offering a textual explanation or description.

A key aspect of <figcaption> is that it is semantically tied to its parent <figure> element. This means that the caption is considered part of the figure, and assistive technologies, like screen readers, will associate the caption with the figure content, improving accessibility.

The <figcaption> element can be placed as the first or last child of the <figure> element, depending on whether you want the caption to appear above or below the figure. Its content can include text, inline HTML elements, and even links or small formatting, though it generally avoids large blocks of unrelated content to maintain semantic clarity.

Using <figcaption> is preferable to manually placing a caption with a <p> or <div> because it clearly communicates the relationship between the media content and its description, enhancing both semantic structure and accessibility of your HTML documents.

Example usage:

<figure>
  <img src="sunset.jpg" alt="Sunset over the mountains">
  <figcaption>A breathtaking sunset over the Rocky Mountains, captured in the evening.</figcaption>
</figure>

In this example, the <figcaption> provides a clear, descriptive context for the image, making it meaningful both visually and semantically.

Properties

Permitted Parents
A <figure> element; the <figcaption> element must be its first or last child.
Content
Block, inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<figure>
<img src="images/sunset.jpg" alt="Sunset" width="300" height="226">
<figcaption>Figure 1 - Painting of a sunset.</figcaption>
</figure>

Attributes

None

Global Attributes

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

Event Attributes

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

Browser Support

The following information will show you the current browser support for the HTML <figcaption> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!