HTML <embed> Tag


An embedded flash animation:

<embed src="helloworld.swf">

Definition and Usage

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

Browser Support

<embed> Yes Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

The <embed> tag is new in HTML5.

Note: Many web browsers have supported the <embed> tag for a long time. However, the <embed> tag has not been a part of the HTML 4 specification. The <embed> tag is new in HTML5, and will validate in an HTML5 page. However, if you use it in an HTML 4 page, the page will not validate.


= New in HTML5.

attribute value Description
height pixels Specifies the height of the embedded content.
src URL Specifies the URL of the embedded content
type MIME_type Specifies the MIME type of the embedded content.
Note: MIME = Multipurpose Internet Mail Extensions.
width pixels Specifies the width of the embedded content.