figcaption

FilterElements

<figcaption> ... </figcaption>

HTML5 only. Provides a caption or title for the contents of a figure element. It must be the first or last child element with the parent figure element.

Start/End Tags

Required/Required

Specifications

  • HTML5
Below figure
<figure>
  <img src="tacocat.jpg" alt="a cat eating a taco">
  <figcaption>This cat likes tacos.</figcaption>
</figure>
Preceding figure
<figure>
<figcaption>Sample CSS rule</figcaption>
<pre><code>
body {
  background-color: #000;
  color: red;
}
</code></pre>
</figure>

Rendered Example

The figcaption HTML5 element is not yet supported and can not be displayed.