<div> versus <figure> | Sololearn: Learn to code for FREE!


<div> versus <figure>

I know the differences between them, I just would like to know if there is another good reason why we should use <figure> instead of <div> . Is it only because it is better to write semantic code? Any other advantages in practice? Thanks! References: 1) https://www.pluralsight.com/blog/creative-professional/whats-difference-image-figure-tags-html5 2) https://www.w3schools.com/tags/tag_figure.asp

4/21/2017 7:24:10 AM


2 Answers

New Answer


It's better organized and semantic as you said.


we can add a caption to the image by figure with <figcaption> tag