Here is the DTD for the applet tag. This tag is supported by the Netscape Navigator 2.0 and by the beta version of HotJava and is the standard to be supported by other "java enabled" browsers.
<!ELEMENT APPLET - - (PARAM*, (%text;)*)> <!ATTLIST APPLET CODEBASE CDATA #IMPLIED -- code base -- CODE CDATA #REQUIRED -- code file -- ALT CDATA #OPTIONAL -- alternate text -- NAME CDATA #IMPLIED -- applet name -- WIDTH NUMBER #REQUIRED HEIGHT NUMBER #REQUIRED ALIGN (left|right|top|texttop|middle| absmiddle|baseline|bottom|absbottom) baseline VSPACE NUMBER #IMPLIED HSPACE NUMBER #IMPLIED > <!ELEMENT PARAM - O EMPTY> <!ATTLIST PARAM NAME NAME #REQUIRED -- The name of the parameter -- VALUE CDATA #IMPLIED -- The value of the parameter -- >
Applet resources (including their classes) are normally loaded relative to the document-URL (or <base> tag if it is defined). The codebase attribute is used to change this default behavior. If the codebase attribute is defined then it specifies a different location to find applet resources. The value can be an absolute URL or a relative URL. The absolute URL is used as is without modification and is not effected by the documents <base> tag. When the codebase attribute is relative, then it is relative to the document-URL (or <base> tag if defined).
<APPLET CODEBASE="/applets/NervousText" CODE="NervousText.class" WIDTH=300 HEIGHT=50> <PARAM NAME=text VALUE="Java is Cool!"> </APPLET>
Which causes this to appear: