HTML <figcaption> tag

HTML <figcaption> tag : Definition

• The HTML <figcaption> element represents the child of a parent <figure> element to attach a caption to the image, table, or chart contained in the <figure> element.

In short, we can say that figcaption element define a caption for the photo.

<figcaption> tag example :

<!DOCTYPE html>
<html>
<body>
<h1>The figcaption element example</h1>
<figure>
  <img src="app-assets/images/course-images/html-tutorial.png" alt="figcaption image went mission" style="width:100%">
  <figcaption>This is the figcaption of the image.</figcaption>
</figure>
</body>
</html>

OUTPUT :


The figcaption element example

HTML Tutorial
This is the figcaption of the image.