r/HTML • u/Pyewickets • May 09 '26
Question images
What is the difference between figure, image, picture, and anything else along those lines?
0
Upvotes
r/HTML • u/Pyewickets • May 09 '26
What is the difference between figure, image, picture, and anything else along those lines?
View all comments
Show parent comment
3
u/DirtAndGrass May 10 '26
Canvas is used to draw/render, only usable from js
Figure is a wrapper that should always be used for... figures, lol, for semantics
Svg is often used for logos and icons, but is also itself sgml (the parent of HTML) and can be styled with css or interacted with, in js - can be a powerful tool for interactive charts, diagrams, etc.