how to use applets

  Take a look at the following HTML code-

<applet archive= "ChompText.zip" code="ChompText.class" width=120 height=60>
<param name="text" value="Hi Mom!">
</applet>

  The first thing you need to insert an applet is the applet tag. This lets the browser know to put an applet on the page.
  The attributes for the applet tag are archive, code, height, and width.

archive is the archive (zip file) that the applet is located in. If the applet isn't zipped, you don't need this attribute. In the example, the applet is located in a zip called "ChompText.zip".


code is the filename of the applet. In the example, the filename is ChompText.class.
height and width do not work the same way as they do with images. Just remember that if the values (in pixles) are not high enough, you won't be able to see all off the applet's output.

  Most applets that you download will have their own special parameters (like text in this example). Go to the parameters page to find the ones for ChompText.

Download
ChompText Main