+ 11

<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

21st Apr 2017, 7:24 AM
Pao - avatar
2 Answers
+ 6
It's better organized and semantic as you said.
21st Apr 2017, 7:43 AM
Tim G
Tim G - avatar
we can add a caption to the image by figure with <figcaption> tag
28th Nov 2018, 8:56 AM
pooyana - avatar