Note/Info The <embed> tag is a new tag in HTML5.
HTML5 <embed> tag
The HTML5 <embed> tag specifies container for an external application, multimedia or interactive content into HTML document.
Syntax:
<embed src=”file-name.type”>
Default value
NONE
How Browser will display
BLOCK Level.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | New tag in HTML5 |
Attributes used with <embed> tag
Attribute | Description |
---|---|
src | Defines the address of the source file using a path URL. |
type | Tells about the type of media file. |
height | Sets the height of the embed element in Pixels. |
width | Sets the width of the embed element in Pixels. |
Global Attributes
The <embed> tag supports Global attributes.
Event Attributes
The <embed> tag supports Event attributes.
Supporting Browsers
Related Tags
In HTML5, there are better alternatives to use multimedia files using <audio> or <video> element.