Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   
   HTML   
   CSS   
   JAVA SCRIPT   
   JQUERY   




HTML - Figure Tag


The figure tag or <figure> tag in HTML is used to represent self contained graphical content like images.


Why do we need Figure Tag in HTML?


As explained above, figure tag is used to represent graphical content like images, diagrams e.t.c.


Let us illustrate figure tag with the below example.


Example :



<html>
<body>
	<figure>
		<img src = "my_image.png" height="200px" width = "300px"/>
	</figure>	
</body>
</html>


Output :




So, if you look at the above code. The figure tag represents an image.


<figure>
	<img src = "my_image.png" height="200px" width = "300px"/>
</figure>