A very simple Java Applet

Java programs that are run inside a Web browser are called applets. Applets can do virtually anything a regular Java application can do, but they use the Web browser window as their environment instead of the user's operating system.

Applets are embedded in Web documents with the (Applet) tag, which has 4 attributes: WIDTH, HEIGHT, CODE, and CODEBASE.

Height and width are required and should be assigned a value in pixels.
CODE or CODEBASE must then be used to specify either a class files path on the server and a class name, OR the name of a class in the same directory as the HTML file.

The (param) tag is used within the (APPLET) tag to specify name/value pairs that control the behavior of the Java applet.

Text and other HTML markup can also be included between the (APPLET) start and end tags. This data is displayed by browsers that do not support Java, but ignored by Java browsers.
So you can embed messages within this tag to users without Java-capable browsers to let them know why they cannot see a protion of the document:
(APPLET CODE="whatever.class" WIDTH=200 HEIGHT=200)
(PARAM NAME="sites" VALUE="5")

(EM) A Java-based search agent applet would be displayed here if you were using a Java-capable browser(/EM) (/APPLET)



Want to see a really cool RAINBOW Applet sign?
Want to see another cool
ROLLER COASTER Applet sign?
Ok last one I promise go catch the
WAVE Applet sign!
Sorry I got addicted *smiles*.

1