HTML <embed>Tag
Example
Embed an image:
<embed type="image/jpg" src="https://static.jyshare.com/images/example-logo.png" width="258" height="39">
Try it Yourself »
Example
Embed an HTML page:
<embed type="text/html" src="snippet.html" width="500" height="200">
Try it Yourself »
Example
Embed a video:
<embed type="video/webm" src="video.mp4" width="400" height="300">
Try it Yourself »
Browser Support
![]()
All major browsers support the <embed> tag.
Definition and Usage
The <embed> tag defines a container for embedding external applications or interactive programs (plugins).
Note: It is no longer recommended to use the <embed> tag; you can use <img>, <iframe>, <video>, <audio> and other tags instead.
Differences Between HTML 4.01 and HTML5
The <embed> tag is a new tag in HTML5.
Attributes
New: New in HTML5.
| Attribute | Value | Description |
|---|---|---|
| heightNew | pixels | Specifies the height of the embedded content. |
| srcNew | URL | Specifies the URL of the embedded content. |
| typeNew | MIME_type | Specifies the MIME type of the embedded content. Note: MIME = Multipurpose Internet Mail Extensions. |
| widthNew | pixels | Specifies the width of the embedded content. |
Global Attributes
The <embed> tag supportsHTML Global Attributes.。
Event Attributes
The <embed> tag supportsHTML Event Attributes.。
Other Extensions