Embed type attribute
Definition and usage
height
Set or return the value of the type attribute in the <embed> element.
embed type attribute Specify the MIME type of the embedded content.
See also:
HTML Reference Manual:HTML <embed> Tag
Example
Return the MIME type of the embedded content:
var x = document.getElementById("myEmbed").type;
Syntax
Return the type attribute:
embedObject.type
Set the type attribute:
embedObject.type = MIME_type
Attribute value
Value | Description |
---|---|
MIME_type |
The MIME type of the embedded content. Please see IANA MIME Types, to get a complete list of standard MIME types. |
Technical Details
Return Value: | A string value that represents the MIME type of the embedded content. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
Related Pages
HTML Reference Manual:HTML <embed> type Attribute