Introduction to Java : Building Your First Application part-3
Applet Tag by Example
Here is an example of the code we could use to place the Hello applet we created previously in a web page:
<APPLET WIDTH = "200" HEIGHT = "100"
CODE = "Hello.class">
</APPLET>
Notice that we gave the applet a specific width and height. For an applet to appear, you must give it a specific width and height. If you don’t want an applet to display (such as when your applet creates a popup frame right away), you can give it a width and height of 0: