<figure> tag in HTML 5

In this articles i am going to explain about figure tag in HTML 5.
  • 1563

Definition

The HTML <Figure> tag is used for diagrams, photos, code listings, etc. You can use the <figure> element in conjunction with the <figcaption> element to provide a caption for the contents of your <figure> element.You can use the <figure> element to associate a caption together with some embedded content, such as a graphic or video.

Support browser in <Figure> tag.

Chrome,  Firefox,  Opera,  Internet Explorer 9  and  Safari.

Lets take an example of <Figure> tag

<html>
<body>
    <p>
        This image is a sun set.</p>
    <figure>
  <img src="/d:\jitendra\figure\Sunset.jpg" alt="Gupta" width="304" height="228" />
</figure>
</body>
</html>

 

Output


Clipboard06.jpg

Further Readings

You may also want to read these related articles

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


© 2020 DotNetHeaven. All rights reserved.