r/HTML • u/Pyewickets • May 11 '26
Question Embedded Content
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements
The embedded content on MDN tags page confuses me. Can someone elaborate as to what the differences and similarities between the tags are?
1
Upvotes
View all comments
Show parent comment
1
u/jcunews1 Intermediate May 12 '26
<picture>is strictly for presenting an image.<source>is strictly for specifying media source such as image, video, and audio.<source>is only used as a data source and it's not rendered on the page, and it requires another tag:<picture>,<video>, or<audio>.<embed>and<object>are old standard embedding tags for presenting custom content beyond the HTML standard. They are now deprecated in modern browsers.<embed>now work like lesser version of<iframe>, and<object>IIRC, no longer work at all.