<embed>

  • Revision slug: Web/HTML/Element/embed
  • Revision title: <embed>
  • Revision id: 474947
  • Created:
  • Creator: justleroy
  • Is current revision? No
  • Comment Fixed the HTML 5 link.

Revision Content

Summary

The HTML <embed> Element represents an integration point for an external application or interactive content (in other words, a plug-in).

{{Note("This topic documents only the element that is defined as part of HTML5. It does not address earlier, non-standardized implementation of the element.")}}

  • Content categories Flow content, phrasing content, embedded content, interactive content, palpable content.
  • Permitted content None; this is a void element.
  • Tag omission Must have a start tag, and must not have an end tag.
  • Permitted parent elements Any element that accepts embedded content.
  • DOM interface {{domxref("HTMLEmbedElement")}}

Attributes

This element includes the global attributes.

{{htmlattrdef("height")}}
The displayed height of the resource, in CSS pixels.
{{htmlattrdef("src")}}
The URL of the resource being embedded.
{{htmlattrdef("type")}}
The MIME type to use to select the plug-in to instantiate.
{{htmlattrdef("width")}}
The displayed width of the resource, in CSS pixels.

Examples

<embed type="video/quicktime" src="movie.mov" width="640" height="480">

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-embed-element', '<embed>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-embed-element', '<embed>')}} {{Spec2('HTML5 W3C')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatGeckoDesktop("1.0")}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}

See also

  • Other elements that are used for embedding content of various types include {{HTMLElement("audio")}}, {{HTMLElement("canvas")}}, {{HTMLElement("iframe")}}, {{HTMLElement("img")}}, {{MathMLElement("math")}}, {{HTMLElement("object")}}, {{SVGElement("svg")}}, and {{HTMLElement("video")}}.

{{ HTML:Element_Navigation() }}

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;embed&gt;</code> Element</strong> represents an integration point for an external application or interactive content (in other words, a plug-in).</p>
<p>{{Note("This topic documents only the element that is defined as part of HTML5. It does not address earlier, non-standardized implementation of the element.")}}</p>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>, embedded content, interactive content, palpable content.</li>
  <li><dfn>Permitted content</dfn> None; this is a void element.</li>
  <li><dfn>Tag omission</dfn> Must have a start tag, and must not have an end tag.</li>
  <li><dfn>Permitted parent elements</dfn> Any element that accepts embedded content.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLEmbedElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p><span style="line-height: 21px;">This element includes the&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height: 21px;">.</span></p>
<dl>
  <dt>
    {{htmlattrdef("height")}}</dt>
  <dd>
    The displayed height of the resource, in CSS pixels.</dd>
  <dt>
    {{htmlattrdef("src")}}</dt>
  <dd>
    The URL&nbsp;of the resource being embedded.</dd>
  <dt>
    {{htmlattrdef("type")}}</dt>
  <dd>
    The MIME&nbsp;type to use to select the plug-in to instantiate.</dd>
  <dt>
    {{htmlattrdef("width")}}</dt>
  <dd>
    The displayed width of the resource, in CSS pixels.</dd>
</dl>
<h2 id="Examples">Examples</h2>
<pre class="brush: html">
&lt;embed type="video/quicktime" src="movie.mov" width="640" height="480"&gt;
</pre>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-embed-element', '&lt;embed&gt;')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-embed-element', '&lt;embed&gt;')}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoDesktop("1.0")}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>Other elements that are used for embedding content of various types include {{HTMLElement("audio")}}, {{HTMLElement("canvas")}}, {{HTMLElement("iframe")}}, {{HTMLElement("img")}}, {{MathMLElement("math")}}, {{HTMLElement("object")}}, {{SVGElement("svg")}}, and {{HTMLElement("video")}}.</li>
</ul>
<p>{{ HTML:Element_Navigation() }}</p>
Revert to this revision