Your browser formats (lays out in pretty fashion) all the information in the web page. It needs to know the size of the applet area to do this.
If you wish to display a message to people who have disabled their browser from running Java, put a few lines of text between the tags:
<applet code="MyApplet.class" width="250" height="200"> <p> If you see this, your browser does not have Java applets enabled. </p> </applet>
Sometimes individuals or companies disable Java applets out of security concerns.
Note: Officially in the latest version of HTML applets
are included in a Web page using an
But this tag is not widely supported, so for now use the