Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 390411 of HTMLEmbedElement

  • Revision slug: DOM/HTMLEmbedElement
  • Revision title: HTMLEmbedElement
  • Revision id: 390411
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{DomRef}}

The HTMLEmbedElement interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating embed elements.

This topic describes the HTMLEmbedElement interface as defined in the standard. It does not address earlier, non-standardized version of the interface.

Properties

Inherits properties from its parent, {{domxref("HTMLElement")}}.

Name Type Description
align {{obsolete_inline}} {{domxref("DOMString")}} Enumerated property indicating alignment of the element's contents with respect to the surrounding context. The possible values are "left", "right", "center", and "justify".
height {{domxref("DOMString")}} Reflects the {{htmlattrxref("height", "embed")}} HTML attribute, containing the displayed height of the resource.
name {{obsolete_inline}} {{domxref("DOMString")}} The name of the embedded object.
src {{domxref("DOMString")}} Reflects the {{htmlattrxref("src", "embed")}} HTML attribute, containing the address of the resource.
type {{domxref("DOMString")}} Reflects the {{htmlattrxref("type", "embed")}} HTML attribute, containing the type of the resource.
width {{domxref("DOMString")}} Reflects the {{htmlattrxref("width", "embed")}} HTML attribute, containing the displayed width of the resource.

Methods

No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "embedded-content-0.html#the-embed-element", "HTMLEmbedElement")}} {{Spec2('HTML WHATWG')}} No change from {{SpecName("HTML5 W3C")}}, but it formally adds two obsolete properties, name and align, to help with compatibility with old Web sites.
{{SpecName('HTML5 W3C', "embedded-content-0.html#the-embed-element", "HTMLEmbedElement")}} {{Spec2('HTML5 W3C')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatVersionUnknown}} {{CompatGeckoDesktop(1.0)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile(1.0)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}

See also

  • The HTML element implementing this interface: {{ HTMLElement("embed") }}

Revision Source

<div>
  {{DomRef}}</div>
<p>The <strong><code>HTMLEmbedElement</code></strong> interface, which provides special properties (beyond the regular <a href="/en-US/docs/DOM/element" rel="internal">element</a> object interface they also have available to them by inheritance) for manipulating <code>embed</code> elements.</p>
<div class="note">
  <p>This topic describes the <code><span class="external">HTMLEmbedElement</span></code> interface as defined in the standard. It does not address earlier, non-standardized version of the interface.</p>
</div>
<h2 id="Properties">Properties</h2>
<p><em>Inherits properties from its parent, {{domxref("HTMLElement")}}.</em></p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Type</th>
      <th scope="col">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>align</code>&nbsp;{{obsolete_inline}}</td>
      <td>{{domxref("DOMString")}}</td>
      <td>Enumerated property indicating alignment of the element's contents with respect to the surrounding context. The possible values are <code>"left"</code>, <code>"right"</code>, <code>"center"</code>, and <code>"justify"</code>.</td>
    </tr>
    <tr>
      <td><code>height</code></td>
      <td>{{domxref("DOMString")}}</td>
      <td>Reflects the {{htmlattrxref("height", "embed")}} HTML attribute, containing the displayed height of the resource.</td>
    </tr>
    <tr>
      <td><code>name</code>&nbsp;{{obsolete_inline}}</td>
      <td>{{domxref("DOMString")}}</td>
      <td>The name of the embedded object.</td>
    </tr>
    <tr>
      <td><code>src</code></td>
      <td>{{domxref("DOMString")}}</td>
      <td>Reflects the {{htmlattrxref("src", "embed")}} HTML attribute, containing the address of the resource.</td>
    </tr>
    <tr>
      <td><code>type</code></td>
      <td>{{domxref("DOMString")}}</td>
      <td>Reflects the {{htmlattrxref("type", "embed")}} HTML attribute, containing the type of the resource.</td>
    </tr>
    <tr>
      <td><code>width</code></td>
      <td>{{domxref("DOMString")}}</td>
      <td>Reflects the {{htmlattrxref("width", "embed")}} HTML attribute, containing the displayed width of the resource.</td>
    </tr>
  </tbody>
</table>
<h2 id="Methods">Methods</h2>
<p><em>No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.</em></p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
    <tr>
      <td>{{SpecName('HTML WHATWG', "embedded-content-0.html#the-embed-element", "HTMLEmbedElement")}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>No change from {{SpecName("HTML5 W3C")}}, but it formally adds two obsolete properties, <code>name</code> and <code>align</code>, to help with compatibility with old Web sites.</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', "embedded-content-0.html#the-embed-element", "HTMLEmbedElement")}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>Initial definition.</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 (WebKit)</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>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile(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>The HTML element implementing this interface: {{ HTMLElement("embed") }}</li>
</ul>
Revert to this revision