<applet> attributes 


If these definitions scare you then just ignore them, they are included for completeness but you don't need them to use diputree.

<APPLET> definition (HTML DTD)

<!ELEMENT APPLET - - (PARAM | %flow;)* -- Java applet -->
<!ATTLIST APPLET
id        ID            #IMPLIED -- document-wide unique id --
class     CDATA         #IMPLIED -- space-separated list of classes --
style     %StyleSheet;  #IMPLIED -- associated style info --
title     %Text;        #IMPLIED -- advisory title --"
codebase  %URI;         #IMPLIED -- optional base URI for applet --
archive   CDATA         #IMPLIED -- comma-separated archive list --
code      CDATA         #IMPLIED -- applet class file --
object    CDATA         #IMPLIED -- serialized applet file --
alt       %Text;        #IMPLIED -- short description --
name      CDATA         #IMPLIED -- allows applets to find each other --
width     %Length;      #REQUIRED -- initial width --
height    %Length;      #REQUIRED -- initial height --

align     %IAlign;      #IMPLIED -- vertical or horizontal alignment --
hspace    %Pixels;      #IMPLIED -- horizontal gutter --
vspace    %Pixels;      #IMPLIED -- vertical gutter --
>

code, width and height should always be present in a legal <APPLET> element.

Attribute definitions 

These definitions are taken from the HTML 4.01 standard.

codebase = uri [CT]

This attribute specifies the base URI for the applet. If this attribute is not specified, then it defaults the same base URI as for the current document. Values for this attribute may only refer to subdirectories of the directory containing the current document. Note. While the restriction on subdirectories is a departure from common practice and the HTML 3.2 specification, the HTML Working Group has chosen to leave the restriction in this version of the specification for security reasons.

code = cdata [CS]

This attribute specifies either the name of the class file that contains the applet's compiled applet subclass or the path to get the class, including the class file itself. It is interpreted with respect to the applet's codebase. One of code or object must be present.

name = cdata [CS]

This attribute specifies a name for the applet instance, which makes it possible for applets on the same page to find (and communicate with) each other.

archive = uri-list [CT]

This attribute specifies a comma-separated list of URIs for archives containing classes and other resources that will be "preloaded". The classes are loaded using an instance of an AppletClassLoader with the given codebase. Relative URIs for archives are interpreted with respect to the applet's codebase. Preloading resources can significantly improve the performance of applets.

object = cdata [CS]

This attribute names a resource containing a serialized representation of an applet's state. It is interpreted relative to the applet's codebase. The serialized data contains the applet's class name but not the implementation. The class name is used to retrieve the implementation from a class file or archive.

When the applet is "deserialized" the start() method is invoked but not the init() method. Attributes valid when the original object was serialized are not restored. Any attributes passed to this APPLET instance will be available to the applet. Authors should use this feature with extreme caution. An applet should be stopped before it is serialized.
Either code or object must be present. If both code and object are given, it is an error if they provide different class names.

width = length [CI]

This attribute specifies the initial width of the applet's display area (excluding any windows or dialogs that the applet creates).

height = length [CI]

This attribute specifies the initial height of the applet's display area (excluding any windows or dialogs that the applet creates).

id = name [CS]

This attribute assigns a name to an element. This name must be unique in a document.

class = cdata-list [CS]

This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.

title = text [CS]

This attribute offers advisory information about the element for which it is set.

style = style [CN]

This attribute specifies style information for the current element.

alt = text [CS]

For user agents that cannot display images, forms, or applets, this attribute specifies alternate text. The language of the alternate text is specified by the lang attribute.

align = bottom|middle|top|left|right

Deprecated. This attribute specifies the position of an IMG, OBJECT, or APPLET with respect to its context.

hspace = pixels [CN]

Deprecated. This attribute specifies the amount of white space to be inserted to the left and right of an IMG, APPLET, or OBJECT. The default value is not specified, but is generally a small, non-zero length.

vspace = pixels [CN]

Deprecated. This attribute specifies the amount of white space to be inserted above and below an IMG, APPLET, or OBJECT. The default value is not specified, but is generally a small, non-zero length.


diputree documentation © 2000 dipu