New in HTML5.

<figcaption> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Element of
Web Images: Best Practices and HTML Code In One Useful Guide
What does <figcaption> HTML Tag do?
The <figcaption> element is used as a child of a parent <figure> element to attach a caption to the image, table, or chart contained in the <figure> element.
Display
block

Code Example

<figure>
<img src="/wp-content/uploads/flamingo.jpg" alt="flamingo">
<figcaption><i>fig. 1</i> A pink flamingo.</figcaption>
</figure>
flamingo
fig. 1 A pink flamingo.

The <figure> element

The <figcaption> element must be a child of a <figure> element. Moreover, it must be the first or last child element inside a <figure>, and there can be no more than one <figcaption> inside a <figure>. (There can be no caption at all — it is not required.) The content of the <figcaption> should be text describing the content of the <figure>. For more information, see the <figure> element documentation.

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for figure

iefirefoxchromeedgesafariopera
11434513934