+ 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
2 Respuestas
+ 6
It's better organized and semantic as you said.
0
we can add a caption to the image by figure with <figcaption> tag