Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Element of
- What does
Is The Best HTML Element To Add Media? Find Out Now do?
- The <embed> element creates an embedded panel in which a third-party application, such as a Flash-based object, can run.
What’s the opposite of “deprecated”?
There are many old HTML element which were originally part of the specification, but have been removed. The
<embed> element, on the other hand, has been around for a long time, but has only been added to the official specification as of HTML5.
Still maybe not a great idea
<embed> is perfectly valid, and the preferred way to embed third-party applications, such as Flash, it might not be a good idea to use. That is to say — maybe you don’t want to embed Flash or Java applications in your web page. (Just a suggestion.)
Not for media, either
<embed> attribute was originally used both for applications (like Flash) and also for media — movies and audio. You can now use HTML5’s new media elements,
Adam is a technical writer who specializes in developer documentation and tutorials.
Browser Support for embed
Attributes of embed
|src||Specifies the URL of an application to be embedded.|
|width||Specifies the width of an embedded application panel.|
|align||Was used to control the alignment of an embedded application. Not a part of the HTML specification.|
|name||Was used to define the name of an embedded application. Not a part of the HTML specification.|
|pluginspage||Was used to indicate a download source for a plugin required in order to run the embedded application. Not a part of the HTML specification.|
|pluginurl||Was used as part of a proprietary specification for embedded applications. Not a part of the HTML specification.|
|hidden||Hides the element from view.|
|href||Was used to define a link resource for an embedded application. Not a part of the HTML specification.|
|autostart||Was used to start embedded audio playback immediately. Not a part of the HTML specification.|
|loop||Was used to loop playback of embedded media. Not part of the HTML specification.|
|playcount||Was used to specify the number of times an embedded media file should play. Not a part of the HTML specification.|
|volume||Was used to specify the playback volume of an embedded application. Not a part of the HTML specification.|
|controls||Was used to toggle the display of playback controls in embedded media. Not a part of the HTML specification.|
|controller||Was used to toggle display of playback controls. Not a part of the HTML specification.|
|mastersound||Was used to control sound in embedded media. Not part of the HTML specification.|
|starttime||Was used to indicate the starting playback position for embedded media. Not a part of the HTML specification.|