Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Say Hello to the HTML5 Embed Element

DZone's Guide to

Say Hello to the HTML5 Embed Element

· Web Dev Zone
Free Resource

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

In HTML5, the <embed> element defines a container for an external application or interactive content (a plug-in). In this example, we will use it to display a Flash movie:
<!DOCTYPE html>
<html>
<body>

<embed src="stars.swf" type="application/x-shockwave-flash" width="500" height="350" />

</body>
</html>
And the output will be:
 

 
The <embed> tag is supported in Internet Explorer , Firefox, Opera, Chrome and Safari.
 
type="application/x-shockwave-flash" – specifies the MIME type of the embedded content For more informations, please visit http://www.w3.org/TR/html5/the-embed-element.html#the-embed-element.
 
 
 
 

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

Topics:

Published at DZone with permission of A. Programmer. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}