What is the use of figure tag in HTML 5?


The figure tag is used to add a photo in the document on the web page. It is used to handle the group of diagrams, photos, code listing with some embedded content.

<p>The Taj Mahal is widely recognized as "the jewel of Muslim art in India and one of the universally admired masterpieces of the world's heritage."</p>    
<figure>    
  <img src="htmlpages/images/tajmahal.jpg" alt="Taj Mahal"/>    
</figure>     

Leave a Reply

Your email address will not be published. Required fields are marked *