Embed

End Tag: Required
Support Key: 2 | 3 | 3.2 | 4 | IE3B2 | M | N1.1 | O3
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [indexdot@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
The EMBED element is the method used to integrate Netscape Plug-In technology into a web page. The element has three mandatory attributes [HEIGHT, SRC, and WIDTH] but it is extensible in that it also allows any number of additional custom attributes that are dependent on the Plug-In used. Any attributes present that the browser does not understand are passed on to the plug-in for interpretation.

The browser should first try to determine which Plug-In to use based on the file extension of the file in the SRC attribute (Netscape browsers may also use the TYPE attribute to determine this.) If the browser can not determine what Plug-In to use, it will then query the user to determine what to do next.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
%Events%
2 | 3 | 3.2 | 4 | IE | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Align
2 | 3 | 3.2 | 4 | IE3B2 | M | N1.1 | O3.5
Required? No
Description:
This attribute specifies the alignment of text following the embedded object relative to the object on the screen. Values of LEFT and RIGHT specify floating horizontal alignment of the embedded object in the browser window, and subsequent text will wrap around the object. The other values specify vertical alignment of text relative to the object on the same line.
Values:
Left | Right | Top | Texttop | Middle | Absmiddle | Baseline | Bottom | Absbottom
AtomicSelection
2 | 3 | 3.2 | 4 | IE5.5 | M | N | O
Required? No
Description:
Specifies whether or not the embedded object is to be selected as a whole, singular piece. If the entire document does not have this attribute set as well, this attribute will be ignored.
Values:
True - The embedded object may only be selected as a whole unit
False [DEFAULT]
Disabled
2 | 3 | 3.2 | 4 | IE5.5 | M | N | O
Required? No
Description:
Specifies whether or not the embedded object responds to user interaction. Usually also signified by a visual "dimming" of the object.
Values:
True | False [DEFAULT]
Height
2 | 3 | 3.2 | 4 | IE3B2 | M | N1.1 | O3
Required? Yes
Description:
Specifies the height of the embedded object on the screen.
Values:
Positive integers or a percentage of the screen/window to use. If the UNITS attribute is not specified, the default measurement system used for positive integers is pixels (px.)
Hidden
2 | 3 | 3.2 | 4 | IE3B2 | M | N2 | O3.51
Required? No
Description:
Specifies whether the embedded object will be visible/rendered on the page. A value of TRUE will override any HEIGHT/WIDTH attributes also set and the rest of the page will be rendered as if the embedded object does not exist in the document flow.
Values:
True | False [DEFAULT]
Hspace
2 | 3 | 3.2 | 4 | IE | M | N1.1 | O
Required? No
Description:
This attribute specifies the horizontal spacing (left and right padding) around the embedded object using the unit system specified in the UNITS attribute. Values are specified using positive integers.
Values:
Positive integer values. If the UNITS attribute is not specified, the default measurement system is pixels (px.)
Name
2 | 3 | 3.2 | 4 | IE | M | N4 | O
Required? No
Description:
This attribute is used to give a unique label to this embedded object so that it can be referenced and manipulated with scripting code.
Values:
Alphanumeric characters.
Palette
2 | 3 | 3.2 | 4 | IE | M | N3 | O
Required? No
Description:
This attribute is windows-platform specific; it controls whether the foreground or background palette is used by the plug-in to render the embedded object.
Values:
Background [DEFAULT] The plug-in uses the background color palette to render the embedded object.
Foreground The plug-in uses the foreground color palette to render the embedded object.
PluginsPage
2 | 3 | 3.2 | 4 | IE3B2 | M | N2 | O3.51
Required? No
Description:
Specifies a URL that contains instructions for downloading the necessary plug-in for the embedded object if the plug-in is not already installed.
Values: Either an absolute or relative URL.
PluginURL
2 | 3 | 3.2 | 4 | IE | M | N4 | O
Required? No
Description:
This attribute takes precedence over PluginsPage and consists of the URL of a Java Archive file for use in directly installing a plug-in if it is not already installed.
Values: Either an absolute or relative URL.
Src
2 | 3 | 3.2 | 4 | IE3B2 | M | N1.1 | O3
Required? Yes
Description:
Indicates the source URL of the embedded object.
Values: Either an absolute or relative URL.
Type
2 | 3 | 3.2 | 4 | IE | M | N3.0 | O
Required? No
Description:
Specifies the MIME type of the embedded object.
Values:
Alphanumeric MIME type.
Units
2 | 3 | 3.2 | 4 | IE4 | M | N3.0 | O
Required? No
Description:
Defines the measurement system used for absolute integer values of the HEIGHT/WIDTH and HSPACE/VSPACE attributes.
Values:
'pixels' [Netscape only. Default value]
'px' [Internet Explorer only. Default value]
'en' [Netscape only.] Half the point-size of the current font.
'em' - [Internet Explorer only.] A scaling factor relative to the size of the current font.
Unselectable
2 | 3 | 3.2 | 4 | IE5.5 | M | N | O
Required? No
Description:
Specifies whether selection of the object is allowed or not by the user.
Values:
Off [DEFAULT] The embedded object may be selected by the user.
On The embedded object may NOT be selected by the user.
Vspace
2 | 3 | 3.2 | 4 | IE | M | N1.1 | O
Required? No
Description:
This attribute specifies the vertical spacing (top and bottom padding) around the embedded object using the unit system specified in the UNITS attribute. Values are specified using positive integers.
Values:
Positive integer values. If the UNITS attribute is not specified, the default measurement system is pixels (px.)
Width
2 | 3 | 3.2 | 4 | IE3B2 | M | N1.1 | O3
Required? Yes
Description:
Specifies the width of the embedded object on the screen.
Values:
Positive integers or a percentage of the screen/window to use. If the UNITS attribute is not specified, the default measurement system used for positive integers is pixels (px.)
Example
<embed SRC="audio/realaudioclip.rpm" ALIGN="Bottom"
WIDTH=40 HEIGHT=20 CONTROLS=StopButton CONSOLE="SoundClip">
<noembed>
Your browser doesn't support plug-ins! Please <a
HREF="audio/realaudioclip.ram">play this sound clip</a> using a helper application instead.
</noembed>
</embed>
Parent Model
%In-line Parent% | %Block Parent%
Content Model
%In-line Content% | %Block Content% | <param>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...