<embed> tag in HTML5
The <embed> tag used to defines a container for an external application like <audio> or <video> into an HTML document.
Important Description
- The <embed> tag is new in HTML5.
- The <embed> tag has not been a part of the HTML 4 specification.
- It is included in HTML5 as a standard.
- Open tag required, close tag forbidden.
Syntax Example of <embed> tag
Result Look Like
<embed> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<embed> |
Yes |
Yes |
Yes |
Yes |
Yes |
Global Attributes
Event Attributes
Attributes
Attribute |
Value |
Description |
height |
Pixels |
Defines the height of the embedded content |
src |
URL |
Defines the address of the external file to embed |
type |
media_type |
Defines the media type of the embedded content |
width |
Pixels |
Defines the width of the embedded content |