Please note, this is a STATIC archive of website from 10 Sep 2022, does not collect or store any user information, there is no "phishing" involved.

HTML5 <embed> Tag

Topic: HTML5 Tags ReferencePrev|Next


The <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.

Placement: Block
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:

HTML: <embed>; XHTML: <embed />

The example below shows the <embed> tag in action.

<embed src="blur.swf" width="400px" height="200px">

Note: The <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.

Tag-Specific Attributes

The following table shows the attributes that are specific to the <embed> tag.

Attribute Value Description
width pixels Sets the width of the embedded content.
height pixels Sets the height of the embedded content.
src URL Specifies the URL of the resource being embedded.
type content-type Specifies the type of the resource.

Global Attributes

Like all other HTML tags, the <embed> tag supports the global attributes in HTML5.

Event Attributes

The <embed> tag also supports the event attributes in HTML5.

Browser Compatibility

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

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 2+
  • Internet Explorer 5.5+
  • Apple Safari 1.3+
  • Opera 9.2+

Further Reading

See tutorial on: HTML5 Audio, HTML5 Video.

Related tags: <object>, <audio>, <video>.

Bootstrap UI Design Templates