HTML <figcaption> Tag

Description

The <figcaption> HTML element is used to provide a caption when using the <figure> tag.
The <figcaption> element can be placed as the first or last child of the <figure> element.

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

Desktop
Explorer Edge Chrome Firefox Opera Safari
9Yes84115.1
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4115.1Yes

Last updated by CSSPortal on: 6th December 2019