Name

<embed> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<embed>...</embed>

Embeds an object into the web page. Embedded objects are most often multimedia files that require special plug-ins to display. Specific media types and their respective plug-ins may have additional proprietary attributes for controlling the playback of the file. The closing tag is not always required, but is recommended. The <embed> tag was dropped by the HTML 4.0 Specification in favor of <object> for adding multimedia elements to pages.

Attributes

align=left|right|top|bottom

Navigator 4.0 and Internet Explorer 4.0 only. Controls the alignment of the media object relative to the surrounding text. Top and bottom are vertical alignments. Left and right position the object on the left or right margin and allow text to wrap around it.

height=number

Specifies the height of the object in number of pixels. Some media types require this attribute.

hidden=yes|no

Hides the media file or player from view when set to yes.

hspace=number

Navigator 4.0 and Internet Explorer 4.0 only. Used in conjunction with the align attribute, this attribute specifies in number of pixels the amount of space to leave clear to the left and right of the media object.

name=name

Specifies a name for the embedded object. This is particularly useful for referencing the object from a script.

palette=foreground|background

Navigator 4.0 and Internet Explorer 4.0 only. This attributes applies to the Windows platform ...

Get HTML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.