HTML Markup For Applets

Contents:
The Applet Tag

The Applet Tag

The introduction of Java created the need for additional HTML tags. In the alpha release of Java, the HotJava browser used the <APP> tag to include applets within HTML files. However, <APP> was unacceptable to the standards committee because it could have an infinite number of parameters. It was replaced by the <APPLET> tag, used in conjunction with the <PARAM> tag. Apparently, the standards folks did not like the <APPLET> tag either, so you can expect it to be replaced eventually, although at this point, there is no agreement about its successor, and it is highly unlikely that any production browser would stop supporting <APPLET>.

The syntax of the <APPLET> tag is shown below; the order of the parameters does not matter:

<APPLET [ALIGN = alignment] [ALT = alternate-text] CODE = applet-filename or OBJECT = serialized-applet [CODEBASE = applet-directory-url] [ARCHIVE = filename.zip/filename.jar] HEIGHT = applet-pixel-height [HSPACE = horizontal-pixel-margin] [MAYSCRIPT = true/false] [NAME = applet-name] [VSPACE = vertical-pixel-margin] WIDTH = applet-pixel-width >
<PARAM NAME=parameter1 VALUE=value1>
<PARAM NAME=parameter2 VALUE=value2>
<PARAM NAME=parameter3 VALUE=value3> ... [alternate-html] </APPLET> 

The following parameters may appear inside the <APPLET> tag.

The <PARAM> tag may appear between the <APPLET> and </APPLET> tags: