HTML <embed> tag

Updated: 11/13/2018 by Computer Hope
HTML embed tag

When writing in HTML (HyperText Markup Language), the <embed> tag is a block element used to designate an area for interactive content (Plugin) or an external application. It is useful when you want to add content that might not be natively supported by an Internet browser. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of <embed> code

<embed src="/jargon/m/example.mp3"></embed>

Example result

Attributes

All HTML tags support standard attributes that define the settings of an HTML element. In addition to the standard settings, the <embed> tag has the following unique attributes.

Attribute Description
height Designates the height of the embedded content.
src Designates the area from which the embedded content is being imported.
type Designates the embedded content's media type.
width Designates the width for the embedded content.

Compatibility

Edge Internet Explorer Firefox Safari Opera Chrome
All versions All versions All versions All version All versions All versions

Browser, Compatibility, Container tag, HTML <audio> tag, HTML <video> tag, URL, Web design terms