On this page
<figure>
Prev: `<picture>` | Up: media | Next: `<video>`
Rel: media, Tables & Media Guide
Ref: MDN Web Docs — <figure>
Tags: #public #web #html #elements #media #tier/standard
Summary
Self-contained media, diagram, or code snippet paired with <figcaption>.
- Implicit ARIA Role:
figure - DOM Interface:
HTMLElement - Key Attributes:
(contains figcaption)
Notes & Best Practices
- Self-contained media + optional
<figcaption>: Works for images, diagrams, charts, and code listings.
Example
<figure>
<img src="arch.svg" alt="Service architecture diagram" width="640" height="360" />
<figcaption>Figure 1: Request lifecycle across services.</figcaption>
</figure>
Linked from
Related notes
- tuts/html/elements/media/picture Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/video Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media Linked here; links to this page; shared tags: #elements, #html, #media, #web
- tuts/html/elements/tables_and_media Linked here; shared tags: #elements, #html, #media, #web
- tuts/html/elements/media/canvas shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/img shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/marquee shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/svg shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/table shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/forms/button shared tags: #elements, #html, #tier, #web