HTML and CSS Reference
The <embed> element has been added to HTML5, mainly as a recognition that it has been
in wide use since Netscape created it when it added plug-in support to their browser.
Browsers continue to support it, mainly because many pages out there still use it. The
default YouTube embed code includes the <embed> tag.
First, let's look at the required attributes of the <embed> element:
<embed src=“a01607av.avi” height=“120” width=“160”
The src attribute contains the location of the multimedia file you want to embed in the
web page. The type attribute contains the content type. (It's the same as the type
attribute of the <object> tag.) The height and width attributes specify the dimensions of
the embedded file in pixels.
Table 12.3 summarizes the <embed> attributes supported by Internet Explorer.
TABLE 12.3 <embed> Attributes
Specifies whether the embedded element can occupy the full
screen. Values are true or false .
Determines whether the embedded object can communicate with
external scripts or link to external pages. Values are always ,
samedomain , and never .
Used to pass configuration parameters to the Flash player. Only
used if the embedded object is Flash.
The height of the element.
The URL of the page where you can download the plug-in used to
view this object.
The URL of the multimedia file.
The MIME type of the multimedia file indicated by the src
The width of the element.
Finally, you can include the noembed element to provide support for visitors who do not
have a web browser that can display plug-ins:
<noembed> This Web page requires a browser that can display objects. </noembed>
<embed src=“a01607av.avi” height=“120” width=“160” />
Search WWH ::