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)