Applets can have attributes, contain <PARAM> elements and/or text.
The required attributes are code
(what to execute), width
and height
.
You should also include archive
for performance reasons (the compressed file
will be downloaded instead of the uncompressed file) .
If the applet is not located in the same directory as the web page, then codebase
should be used to locate the applet.
These are name
and value
pairs that are passed to the applet at startup time.
In the HTML 4.01 standard the <applet> tag has been deprecated in favor of the <OBJECT> tag. However for backward compatibility we will keep on using the <applet> tag in all examples.
You may use the <object> tag, but most browsers in use don't understand the new <OBJECT> tag yet!