How to insert an existing applet on a Web page

How to insert an existing applet on a Web page

The basic format for including a Java applet in a web page is as follows:
<applet codebase=http://site.com/pathname code=JavaClass.class height=100 width=100>
<param name=ParamName value=ParamValue>
...
</applet>
Where the <applet tag signifies the beginning of the applet. The codebase attribute specifies where to download the applet from. (This can be omitted, in which case, it will look for the applet from the same place it retrieved the HTML page from). The code attribute tells it where to get the actual binary for the applet. The height and width attributes specify the height and width of the applet. Officially, these are optional, but Netscape needs them.

The param tags that appear between the open and close applet tag allow you to pass named parameters to the applet.

Everything else that appears between the open tag and the close applet tag will be displayed to non-Java enabled browsers.