HTML <figure> Element Reference

The HTML <figure> element groups self-contained content with an optional caption.

<figure>

HTML <figure> Element Reference

The HTML <figure> element groups self-contained content with an optional caption.

Categories

  • Grouping content

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical figure element example.

<figure>
  <pre><code>const answer = 42;</code></pre>
  <figcaption>A JavaScript constant</figcaption>
</figure>

Related references

Description

The HTML <figure> element groups self-contained content with an optional caption.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <figure> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies