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.

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

Tag Uses

Specific uses of <figure> tag

table

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

image

The figure element can be used for an image. 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 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?

 

Email:

Message: