Tag Description
The embed tag is used to define embedded content, such as a plug-in.
This tag has the form:
<embed
height="pixels"
src="URL"
type="type"
width="pixels">
fallback_content
</embed>
HTML5 and HTML4.01 Differences
This tag is new for HTML5.
Attributes
Attribute | Value | Description |
---|---|---|
height | pixels | Specifies the height of the embed player |
src | URL | Specifies the URL of the embed to play |
type | type | Specifies the type of the embedded content |
width | pixels | Specifies the width of the embed player |
Global Attributes
This tag also supports the HTML Global Attributes.
Event Attributes
This tag also supports the HTML Event Attributes.
Examples
The following example shows the basic use of this tag:
<embed src="hello.swf" width="260" />
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML5 |
---|---|
Empty Tag: | Yes |