<figcaption>
The figure caption element provides a caption or legend for its parent figure.
Syntax
<figcaption>...</figcaption> Examples
<figure>
<pre><code>npm install</code></pre>
<figcaption>Install the package.</figcaption>
</figure>
Output
Renders a code block followed by its descriptive caption.
Notes
Must be the first or last child of <figure>. Only one <figcaption> is allowed per figure.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 8.0 |
| firefox | 4.0 |
| safari | 5.1 |
| edge | 12 |