Skip to content

<figcaption> - Figure Caption

Block-level HTML5

The <figcaption> element represents a caption or legend for the content of its parent <figure> element. It provides a description, title, or attribution for figures like images, diagrams, code snippets, or other self-contained content.

Result
<figure>
<img src="image.jpg" alt="Description">
<figcaption>Caption text goes here</figcaption>
</figure>

The <figcaption> must be the first or last child of a <figure> element.

The <figcaption> element supports all global attributes like id, class, style, and lang.

<figcaption id="caption-1" class="image-caption">
Caption text
</figcaption>
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result
Result

Provide meaningful context in captions:

<figure>
<img src="process.png" alt="Flowchart with 5 steps">
<figcaption>
Figure 2: User registration process showing email verification,
profile creation, and welcome email steps
</figcaption>
</figure>

The caption and alt text serve different purposes:

Result

Screen readers announce captions as part of the figure:

<!-- Screen reader: "Figure. [Image description]. Caption: Photo taken in Paris, 2025" -->
<figure>
<img src="paris.jpg" alt="Eiffel Tower at night">
<figcaption>Photo taken in Paris, 2025</figcaption>
</figure>
<figure>
<img src="image.jpg" alt="Description">
<figcaption>Single caption for this figure</figcaption>
</figure>
<figure>
<img src="image.jpg" alt="Description">
<figcaption>Caption inside figure</figcaption>
</figure>
Result
Result
Result
BrowserVersionNotes
Chrome8+Full support
Firefox4+Full support
Safari5.1+Full support
Edge12+Full support
IE9+Full support

The <figcaption> element was introduced in HTML5.