APPLET TAG: A simple applet tag must be inserted into an HTML page in order for an applet to load on that page when it is viewed in a Java-enabled browser. Most browsers are Java-enabled (or can easily be made to be able to run Java applets). Here's how you do it:
The important thing to realize about Java is that an applet is a little program which ACTUALLY RUNS on your web page as opposed to an image which just appears on your web page. You've had to make screen shots of your LOGO stuff to display it on a web page. You actually load the applet onto the page so it can run in a space provided on the web page. (This first example doesn't actually do much other than display some lines, but it had to be run which is very different from what happens when an image in shown on a web page.)
JAVA CODE: You create JAVA code in a text editter (JOE will work). Here's the code you will use for this assignment:
COMPILING THE CODE: After you have created and saved the file
(which you should call sq.java), you are ready to compile it. Before you
compile it run the dir command to see what files are in your directory. Then
compile the .java file like this:
javac sq.java
ASSIGNMENT: You will present four major items on your web page: