<APPLET CODE="ColorCycle.class"
CODEBASE="applets/colorcycle" ID="ColorCycle"
ALT="Applet simply cycles through several aqua hues with button
click." NAME="App_cc1" WIDTH="100" HEIGHT="100"
ALIGN="LEFT" HSPACE="5" VSPACE="5"></APPLET>
Of the qualifiers which have been added to the applet tag, only CODE, HEIGHT, WIDTH, and CODEBASE are actually necessary to place the applet on the page. In general, an applet is handled similarly to an image tag; i.e., it can have HSPACE and VSPACE qualifiers which determine the 'clear' space around the applet, an ALT tag which appears whenever a browser is used that cannot display the applet. For purposes of DHTML, the applet can also have a NAME and ID, just as an image or any other tag can.
The CODE qualifier specifies the name of the class file which contains the applet. CODEBASE is necessary if the class file is not in the same directory as the page, especially if their are other files, such as images, needed by the applet.
Click several times on the 'Next Color' button in the applet. You will see that the color of the ellipse revolves through several hues of aqua. The applet is wholly self contained. You cannot change anything -- not even the background.