Skip to content
Related Articles

Related Articles

HTML5 | figure Tag
  • Difficulty Level : Basic
  • Last Updated : 17 Jul, 2019

The <figure> tag in HTML is used to add self-contained content like illustrations, diagrams, photos or codes listing in a document. It is related to main flow but it can be used in any position of a document and the figure goes with the flow of the document and if remove it then it should not affect the flow of the document. This tag is new in HTML5.


<figure> Image content... </figure>

Attributes: It contains mostly two tags which are listed below:

  • img src: This tag is used to add image source in the document.
  • figcaption: This tag is use to set the caption to the image.


<!DOCTYPE html>
        <title>figure tag</title>
            body {
            h1 {
        <h2><figure> Tag</h2>
            <img src=
            alt="The Pulpit Rock" width="304" height="228">
            <figcaption>Geeks logo</figcaption>


Supported Browsers: The browser supported by <figure> tag are listed below:

  • Google Chrome 6.0
  • Edge 9.0
  • Firefox 4.0
  • Safari 5.0
  • Opera 11.1
  • Opera 11.1

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :