The figcaption tag or <figcaption> tag in HTML is used to define a caption for the contents of the figure tag.
As explained above, figcaption tag is used with the figure tag to provide a caption for the figure.
Let us illustrate figcaption tag with the below example.
<html> <body> <figure> <img src = "my_image.png" height="200px" width = "300px"/> <figcaption>To illustrate figcaption</figcaption> </figure> </body> </html>
So, if you look at the above code. The figcaption tag is used with the figure tag to provide a caption for it.
<figure> <img src = "my_image.png" height="200px" width = "300px"/> <figcaption>To illustrate figcaption</figcaption> </figure>