{{APIRef("HTML DOM")}}
The HTMLEmbedElement
interface, which provides special properties (beyond the regular {{HTMLElement("HTMLElement")}} interface it also has available to it by inheritance) for manipulating {{HTMLElement("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") }}