HTML <figure> Tag

Description

The <figure> HTML element represents self-contained content, potentially with an optional caption, which is specified using the (<figcaption>) element. The figure, its caption, and its contents are referenced as a single unit.

Properties

Permitted Parents
Any element that accepts Flow content
Content
A <figcaption> element, followed by the Block, Inline, and text elements and vice versa
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 <figure> tag also supports the Global Attributes in HTML5

Event Attributes

The <figure> 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