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

+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

4/21/2017 7:24:10 AM

Pao

2 Answers

New Answer

+6

It's better organized and semantic as you said.

0

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