r/HTML • • Oct 19 '26

What are the differences between the embedded content tags?

embed, iframe, object, picture, source ? How do you use them?

6 Upvotes

4 comments sorted by

View all comments

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.