HTML figure tag

<figure> tag contains flow contents like images, diagrams with some description or title.

<figure> element contains child <figcaption> element in which we write the title for the related diagram.

  <img src="files/logo.png" width="300px" height="300px">
  <figcaption>Learn HTML-codingb</figcaption>
Learn HTML-codingb

Tag Uses

Specific uses of <figure> tag


The figure element can be used for the table in this example.


The figure element can be used for an image. As you can see the top most example.


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

Tag omission

Both opening and closing tags are necessary on the figure element.

Global Attributes

All the global attributes are applicable on the figure element.

Was this article helpful?