HTML

HTMLEmbedElement

HTMLEmbedElement <embed>

For manipulating <embed> elements, the HTMLEmbedElement interface offers specific attributes (beyond the regular HTMLElement interface, which is also made available to it by inheritance). A container for an external resource, such as a web page, image, media player, or plug-in application, is defined by the <embed> element.

Warning

The majority of browsers no longer support Java plug-ins and applets. All browsers no longer support ActiveX components. In modern browsers, Shockwave Flash support has also been disabled.

Attribute Value Description Example
height pixels Specifies the height of the embedded content <embed src="pic_trulli.jpg" width="200" height="200">
src URL Specifies the address of the external file to embed <embed src="pic_trulli.jpg">
type media_type Specifies the media type of the embedded content <embed type="image/jpg" src="pic_trulli.jpg"s>
width pixels Specifies the width of the embedded content <embed src="pic_trulli.jpg" width="200" height="200">

Browser Compatibility

Element Chrome Edge Firefox Safari Opera
<embed> Yes Yes Yes Yes Yes