HTML figcaption - how to use <figcaption> tag

The HTML <figcaption> tag is used to define a caption for the <figure> tag.

The figcaption tag can be placed at the beginning or end of the <figure> tag.


The figcaption tag supports the global and event attributes.


<figure> <figcaption>Figure 1 - What is HTML?</figcaption> <img src="html.jpg" alt="HTML" style="height:200; width:300; border:0"> </figure>