CSS Portal

HTML <figure> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <figure> element is a semantic HTML tag used to encapsulate self-contained content that is typically referenced in the main flow of a document but could also be moved or removed without affecting the surrounding content. It is commonly used for illustrations, diagrams, photos, code snippets, charts, or any media that complements the main content.

A key feature of <figure> is that it often works in tandem with the <figcaption> element, which provides a caption or description for the content inside the <figure>. This pairing enhances accessibility and semantic meaning, making it clear to both users and assistive technologies that the caption describes or explains the figure.

Using <figure> helps structure content logically and improves the clarity and readability of a webpage. It allows authors to group media and its caption together in a way that makes the content more meaningful, supports proper referencing, and maintains consistency in document structure.

For example, a photograph in an article can be wrapped in a <figure> with a <figcaption> that describes the image. This ensures that the image and its description are treated as a single, coherent 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

The following information will show you the current browser support for the HTML <figure> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!