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.
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
- Why <big> tag is not in HTML5 while <small> tag exists ?
- How to create a caption for a figure element using HTML5 ?
- HTML5 | MathML <menclose> Tag
- HTML5 | <footer> Tag
- HTML5 | <details> tag
- HTML5 | <aside> Tag
- HTML5 | <dialog> Tag
- HTML5 | article tag
- HTML5 | <meter> Tag
- HTML5 | date attribute in <input> Tag
- HTML5 | mark Tag
- HTML5 | fieldset Tag
- HTML5 | figcaption Tag
- HTML5 | <ruby> Tag
- HTML5 | rt Tag
- HTML5 | rp Tag
- HTML5 | MathML <merror> Tag
- HTML5 | MathML <maction> tag
- HTML5 | MathML <mfrac> tag
- HTML5 | MathML <mglyph> Tag
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.