Name

<embed> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - 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. Many of these are outlined in Chapters 19, 20, and 21 of this book. The closing tag is not always required, but is recommended.

Attributes

align=left|right|top|bottom

NN 4.0 and MSIE 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

NN 4.0 and IE 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

NN 4.0 and MSIE 4.0 only. This attributes applies to the Windows platform only. A value of foreground makes the palette used by the plug-in the foreground palette. Similarly, a value of ...

Get Web Design in a Nutshell 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.