The Java Applet tag

[Applet Definition][Applet attributes][Param Definition]

Applet Definition

<APPLET Code="filname.class"
       Codebase="location of code"
       Width="#" Height="#"
       alt="alternate">

<PARAM Name="parameter"
       Value="accepted value">
</APPLET>

The APPLET element replaced the APP element as the mechanism
to identify and invoke a JAVA(tm) application.

A browser that understands this element will ignore everything
in the content of the APPLET element except the PARAM elements.

Browsers that do not understand this element should ignore it and
the PARAM elements and instead process
the content of the element. Thus the content is the alternate
HTML if the application is not invoked.

Applet Attributes

Applet Code

Code="Javafilename.class"

The name of the file that contains the compiled Applet subclass.
This name is relative to the base URL of the applet
and cannot be an absolute URL.


Applet Codebase

Codebase="http://domain/path/classes"

Specifies the base URL of the applet. This enables you to have your
code in a different directory than the page your applet appears on.


Applet ALT

ALT="Display this text if the java applet won't run"

Specifies parsed character data to be displayed if the brower
understands the APPLET tag but can't/won't run them.
Identical to the HTML <alt> tag.


Applet Name

Name="Symbolic_name"

Specifies a name for the applet instance, which allows
applets on the same page to commuicate with each other.


Applet Width & Height

Width="#" Height="#"

Give the initial width and height (in pixels) of the
applet display area. Required to run an applet.


Applet Align

align="#"      #= left, rigth and center

Specifies the display alignment.
Identical to the HTML <align> tag.


Applet Vspace & Hspace

VSPACE="#" HSPACE="#"

Specify the reserved space around the applet (in pixels).



Param Definition

General Description

<PARAM>

The PARAM element allows a list of named property values (used
to initialize a OLE control, plug-in module or Java applet) to be
represented as a sequence of PARAM elements. Note that PARAM is an
empty element and should appear without an endtag.


The Param name attribute

<PARAM Name="parameter"

Defines the property name. The case sensitivity of the name is
dependent on the code implementing the object.


The Param value attribute

Value="accepted value"

Used to specify the property value. It is an opaque character
string whose meaning is determined by the object based on the
property name. Note that CDATA attribute values need characters
such as & to be escaped using the standard SGML character entities,
e.g. & for "&". It is also essential to escape the > character to
defend against incorrect handling by many existing browsers (use >).


[Page][Font][Text Style ][Image][Table][Form][Applet][Frames]
[Marquee][Image Map][Javascript][Entities][Tag Index]