Applet forms are also displayed in the Applet Viewer. page for an example of using the applet element at the top of the source: E.G. An applet is a program written in the Java programming language that can be included in an HTML. Note particularly that rather than provide HTML as the argument to the applet viewer (the old way), applet viewer will now parse the applet element directly out of the source. You can write and test your applet in Eclipse.
The HTML document tells the browser to load and run an applet using the HTML tag