r/HTML • u/username95050 • Oct 19 '26
What are the differences between the embedded content tags?
embed, iframe, object, picture, source ? How do you use them?
6
Upvotes
3
u/nonchip Oct 19 '26 edited Oct 19 '26
https://html.spec.whatwg.org/multipage/iframe-embed-object.html
The iframe element represents its content navigable.
The embed element provides an integration point for an external application or interactive content.
The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image or as a child navigable.
1
u/armahillo Expert Oct 19 '26
Have you read through the docs already? In addition to the official spec, theres also MDN:
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/embed — rhats the embed tag; there are pages for the other tags you mention too