0Pricing
HTML Academy · Lesson

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

  1. The iframe Element src and sandbox
  2. iframe Security Clickjacking and X-Frame-Options
  3. The embed and object Elements
  4. Lazy Loading iframes
← Back to HTML Academy