The embed and object Elements
Embed plugins and fallback content with embed and object.
The embed Element
<embed> embeds external content using a browser plugin or the browser's built-in handler. Its type attribute specifies the MIME type; src is the resource URL. It is a void element with no children or fallback content.
The object Element
<object> is more flexible than embed. Its data attribute points to the resource; type specifies MIME type. Children serve as fallback content if the object cannot be loaded — including a nested object or descriptive text.
All lessons in this course
- The iframe Element src and sandbox
- iframe Security Clickjacking and X-Frame-Options
- The embed and object Elements
- Lazy Loading iframes