English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <embed> Tag

HTML <embed> tag is an HTML5Elements, used as containers for embedding external content (such as external applications or browser plugins). Due to compatibility issues, the <object> tag is more commonly used for embedding resources than the <embed> tag. This tag is also commonly referred to as the <embed> element.

Online Example

Embedded Flash Animation:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial Website(oldtoolbag.com)</title> 
</head>
<body>
<embed type="application/x-shockwave-flash" src="bookmark.swf" width="400" height="300">
</body>
</html>
Test and See ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <embed> tag.

Definition and Usage Description

The <embed> tag defines a container used to embed external applications or interactive programs (plugins).

Since the <embed> tag is only available in HTML5is available, so the <object> tag is used for HTML4or XHTML.

HTML 4.01 and HTML5differences between

<embed> tag is an HTML 5 new tags in

Attribute

AttributeValueDescription
heightHTML5pixelsSpecifies the height of the embedded content.
srcHTML5URL Specifies the URL of the content to be embedded.
typeHTML5MIME_typeSpecifies the MIME type of the embedded content.
Note: MIME = Multipurpose Internet Mail Extensions.
widthHTML5pixelsSpecifies the width of the embedded content.

Global attributes

Support for <embed> tag Global attributes of HTML.

Event attributes

Support for <embed> tag HTML event attributes.