figure

FilterElements

<figure> ... </figure>

HTML5 only. Indicates some set of self-contained content that is referred to from the main content, such as illustrations, code examples, diagrams, poems, and so on. The figure element may contain one figcaption that provides the figure caption or title. The figcaption must be the first or last element within the figure.

Start/End Tags

Required/Required

Specifications

  • HTML5
<figure>
<img src="tacocat.jpg" alt="a cat eating a taco">
</figure>

<figure>
<figcaption>Sample CSS rule</figcaption>
<pre><code>
body {
  background-color: #000;
  color: red;
}
</code></pre>
</figure>

Rendered Example

The figure element is not yet supported and can not be displayed.