HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <embed> Tag


Example

An embedded flash animation:

<embed src="helloworld.swf">

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <embed> tag is supported in all major browsers.


Definition and Usage

The <embed> tag defines a container for an external application or interactive content (a plug-in).


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.


Attributes

New : New in HTML5.

Attribute Value Description
heightNew pixels Specifies the height of the embedded content
srcNew URL Specifies the address of the external file to embed
typeNew MIME_type Specifies the MIME type of the embedded content
widthNew pixels Specifies the width of the embedded content

Global Attributes

The <embed> tag also supports the Global Attributes in HTML.


Event Attributes

The <embed> tag also supports the Event Attributes in HTML.


Related Pages

HTML DOM reference: Embed object



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE