<embed> element can be used to embed external application, typically multimedia content like audio or video into an HTML document.
The following table summarizes the usages context and the version history of this tag.
|Content:||None. It is an empty element.|
|Start/End Tag:||Start tag: required, End tag: forbidden|
|Version:||New in HTML5|
The basic syntax of the
<embed> tag is given with:
The example below shows the
<embed> tag in action.
ExampleTry this code »
<embed src="blur.swf" width="400px" height="200px">
<embed> tag is very well supported in most of the web browsers from a long time. However, the
<embed> tag has not been a part of the HTML 4 specification. It is included in HTML5 as a standard.
The following table shows the attributes that are specific to the
||pixels||Sets the width of the embedded content.|
||pixels||Sets the height of the embedded content.|
||URL||Specifies the URL of the resource being embedded.|
||content-type||Specifies the type of the resource.|
Like all other HTML tags, the
<embed> tag supports the global attributes in HTML5.
<embed> tag also supports the event attributes in HTML5.
<embed> tag is supported in all major modern browsers.