Language References
Specifies a container for external content. | HTML 5 |
HTML Syntax
<embed
height = n
src = url
type = media type
width = n
>
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.