New in HTML5.

<figcaption> HTML Tag

Element of
Images
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

11434513934