HTML <embed> Tag

Description

The <embed> element is used to load and display objects (for example, video files, flash clips, some sound files, etc.) that the browser does not understand initially. Typically, such objects require a special module called a plug-in to connect to the browser, or the launch of an auxiliary program.

Properties

Permitted Parents
Any element that accepts embedded content
Content
None. It is an empty element.
Start/End Tags
Start tag: required, End tag: forbidden

Example

<embed type="video/webm" width="240" height="176" src="audio/toy.mp4">

Attributes

Attribute Definition
height Specifies the height, in pixels, to display the external content
src Specifies the location of the external file. Its value must be the URI of the resource being embedded
type Specifies the type of the embedded content. If specified, the value must be a MIME type
width Specifies the width, in pixels, to display the external content

Global Attributes

The <embed> tag also supports the Global Attributes in HTML5

Event Attributes

The <embed> tag also supports the Event Attributes in HTML5

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
YesYesYes1YesYes
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4XXYes