HTML and CSS Reference
In-Depth Information
HTML5 Attributes
HTML5 Global Attributes
Note:
Some plug-ins require their own proprietary attributes for the
embed
element. Read the
documentation for the media type you are trying to embed.
height="
number
number
"
Specifies the height of the object in number of pixels. Some media types require this at-
tribute.
src="
URL
URL
"
Provides the location of the resource to be placed on the page.
type="
media (MIME) type
media (MIME) type
"
Specifies the MIME type of the media in order to load the appropriate plug-in. The suffix
of the file name given as the source may also be used to determine which plug-in to use.
width="
number
number
"
Specifies the width of the object in number of pixels. Some media types require this at-
tribute.
Example (HTML5)
<embed
src="movies/vacation.mov" width="240" height="196"
type="video/quicktime"
>
Nonstandard example with end tag
<embed
src="movies/vacation.mov" width="240" height="196"
pluginspage="http://www.apple.com/quicktime/download/"
>
<noembed><img src="vacation.gif"> You do not seem to have
the plugin.</noembed>
</embed>