EMBED

Description

The <EMBED> element allows authors to embed objects directly into an HTML page. The user needs to have an application which can view the data installed correctly on their machine.

Syntax

<EMBED
ALIGN=alignment
ALT=alternate Text
CLASS=Style Sheet class name
CODE=appletFile
CODEBASE=url
HEIGHT=n pixels
HSPACE=n pixels
ID=value
NAME=name
SRC=url
STYLE=styling
TITLE=text
UNITS=value
VSPACE=n pixels
WIDTH=n pixels
>

Parameter

Description

ALIGN

Specifies the alignment for the control-like element. The possible values of this attribute are: left, right, top, texttop, middle, absmiddle, baseline, bottom, absbottom.

ALT

This optional attribute specifies any text that should be displayed if the browser understands the APPLET element.

CLASS

Class of the tag being defined. This is used to associate a subclassed style sheet with the tag.

CODE

The name of the file containing the compiled Java class.The file path is relative to the base URL of the applet. It cannot be absolute.

CODEBASE

This optional attribute specifies the base URL of the applet -- the directory that contains the applet's code.

HEIGHT

These required attributes give the initial height (in pixels) of the applet display area, not counting any windows or dialogs that the applet brings up.

HSPACE

These option attributes specify the number of margins pixels on each side of the applet.

ID

SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.

NAME

Specifies the name of the application.

SRC

Specifies a URL for the associated file.

STYLE

Specifies an in-line style sheet for the tag.

TITLE

The TITLE attribute is for advisory information (unless used with a mailto: attribute). The Title attribute should provide the title of the document whose address is given by the HREF attribute. The contents of the title attribute will be displayed in a tooltip during the mouse moves on the link. Internet Explorer 4.0 (and above) is the only browser to implement this.

UNITS

Defines the units for the height and width of the EMBED element, expressed as pixels (px) or ems (em).

VSPACE

Along with HSPACE=, specifies above and below margins pixels of the applet.

WIDTH

Along with HEIGHT=, gives the initial width (in pixels) of the applet display area, not counting any windows or dialogs that the applet brings up.

Version

Users need to have a plug-in (for Netscape and Internet Explorer) that can manipulate the embedded file format.

Example

<EMBED src="_url_">
<NOEMBED>Alternative content</NOEMBED>
</EMBED>

Remarks

This element is a block element. Both the start and end tags are required.

Related Topics

APPLET, OBJECT, PARAM