previous | start | next


APPLET

<APPLET
ALIGN=LEFT|CENTER|RIGHT|TOP|MIDDLE| BOTTOM
ALT=alternateText
CODE=appletFile
CODEBASE=codebaseURL
DOWNLOAD=n
HEIGHT=pixels
HSPACE=pixels
NAME=appletInstanceName
TITLE=text
VSPACE=pixels
WIDTH=pixels>
...
<PARAM NAME=AttributeName ...>
...
</APPLET>

Embeds a Java applet in an HTML document. The end-tag is required.

ALIGN=LEFT|CENTER|RIGHT|TOP|MIDDLE|BOTTOM
Describes the alignment of an object to text. The default is LEFT.
LEFT The applet is aligned to the left of surrounding text.
CENTER The applet is aligned to the center of surrounding text.
RIGHT The applet is aligned to the right of surrounding text.
TOP The applet is aligned to the top of surrounding text.
MIDDLE The applet is aligned to the middle of surrounding text.
BOTTOM The applet is aligned to the bottom of surrounding text.
ALT=alternateText
Specifies alternate text for text-only browsers or browsers that do not support Java.
CODE=appletFile
Specifies the name of the Java applet.
CODEBASE=codebaseURL
Specifies the base URL of the applet (the directory in which the applet is located).
DOWNLOAD=n
Specifies the image download order.
HEIGHT=pixels
Specifies the initial height of the applet display area.
HSPACE=pixels
Specifies the horizontal space in which the applet displays.
NAME=appletInstanceName
Identifies an applet to other applets within the HTML page.
PARAM NAME=AttributeName
Passes applet-specific arguments in from an HTML page. There may be no, one, or any number of PARAM NAME= attributes present in the APPLET start-tag.
TITLE=text
Specifies an advisory title string.
VSPACE=pixels
Specifies the space in pixels above the applet.
WIDTH=pixels
Specifies the initial width of the applet display area.

Applet resources are loaded relative to the document URL. The CODEBASE= attribute is used to change this default behavior. If the CODEBASE= attribute is defined, it specifies a different location in which to find applet resources. The value can be an absolute or a relative URL. The absolute URL is used as is, without modification, and is not affected by the document's BASE element. When the CODEBASE= attribute is relative, it is relative to the document URL (or BASE tag, if defined).

Example

<APPLET CODEBASE="applets/javaapps"
  CODE=JavaDemo.class
  WIDTH=100
  HEIGHT=200>
<PARAM NAME=text value="This is a Java applet.">
<IMG SRC=logo.gif ALT="Upgrade to Internet Explorer to view this Java 
applet.">
</APPLET>



previous | start | next