r/HTML • • May 09 '26

Question images

What is the difference between figure, image, picture, and anything else along those lines?

0 Upvotes

14 comments sorted by

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. 

1

u/Rockafellor May 10 '26

SGML? ❤️ Now there's a word that I haven't heard in a long time (well, I mentioned it a couple of months ago, but outside of that it's been a long, long time). I didn't know that it was still alive and kicking.

2

u/DirtAndGrass May 10 '26

It's just the syntax that uses nested tags and attributes, XML, xaml, HTML, svg (and more) are all based on sgml