asp.net.ph

Skip Navigation Links

EMBED Element | EMBED Object

Language References


Specifies a container for external content.HTML 5

HTML Syntax

Remarks

The EMBED element defines a specified integration point in the HTML document for external content.

This is typically non-HTML content provided by an external application or other source of interactive content such as a browser plug-in.

A plug-in is an application that acts as an extension to the native capabilitities of the web browser. Users need to have the appropriate plug-in installed before they can see the results of running an embedded file that uses a plug-in.

If a user opens a web document that has an <embed> tag, and the plug-in needed is already installed, the output is displayed automatically, in a rectangular area set by the width and height attributes of the <embed> tag.

If the plug-in is uninstalled, the browser first checks to see if the plug-in is supported, given the file extension and MIME type of the file to embed, as set in the src and type attributes respectively.

For example:

<embed src="/media/space.au" type="audio/basic" width=400 height=300>

If supported, the browser displays a puzzle piece in the space reserved for the embedded file, which provides a link to the plug-in download page. If the plug-in is not supported, the browser displays the puzzle piece with an error notice.

Attributes

The <embed> element supports the following attributes, in addition to global attributes common to all HTML elements.

AttributeValueDescription
heightpixelsSpecifies the height of the embedded content
srcURLSpecifies the address of the external file to embed
typemedia_typeSpecifies the media type of the embedded content
widthpixelsSpecifies the width of the embedded content

Only the <embed> start tag must be present. The element has no end tag.

Example


See Also

AUDIO   OBJECT   VIDEO



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note