Applet

<APPLET> </APPLET>

The APPLET tag is used to include Java Applets within a site.

The CODE attribute tells the location of the class that the applet itself is in.

CODEBASE is used to give an absolute URL for the applet that you are using, it is kind of like BASE in an HTML document.

Any other classes that there could be for this applet will be searched at the location indicated within CODEBASE. If this is left blank, the current URL will be used instead.

NAME is used to name your applet.

Just like with IMG's, you choose the height and width of the window that the applet will appear in. HSPACE and VSPACE control the horizontal and vertical spacing around the applet. ALIGN will set the alignment for the applet.

Parameters are specified with the PARAM tag, which goes inside the APPLET tag.

The ALT text can contain text which will be displayed if the applet cannot run, but you may choose to use the contents of the APPLET instead. Inside of there you can use markup, which will provide a better alternative than with the ALT text. Not all browsers support Java Applets, and those that do most likely allow the user to disable them. You should always provide alternative text, so your visitors won't be left hanging if your applet decides not to work.