HTML figcaption tag

HMTL <figcaption> tag specifies a caption or a title for the content of the <figure> element.

<figure>
  <img src="files/web.png" height="400px" width="400px" />
  <figcaption>Logo of codingb</figcaption>
 </figure>
</>
Logo of codingb

Tag Uses

Specific uses of <figcaption> tag

table

The figcaption defines a title for the table in this example.

image

The figcaption element specifies a caption or title for an image in this example. As you can see the top most example.

video

The figcaption element defines a caption or title for the section element in this example.

Tag omission

Both opeing and closing tags are necessary for the figcaption element.

Global Attributes

All the global attributes support the figcaption element.



Was this article helpful?