HTML and CSS Reference
the software from the local cache, thereby reducing the inherent delays
of additional network activity to load the class.
The value of the archive attribute is a URL identifying the archive file.
The suffix of the archive filename may be either .zip or .jar . Archived
.zip files are in the familiar ZIP archive format. Archived .jar files are
in the Java archive format. Archived .jar files support compression and
advanced features such as digital signatures.
You can use the archive attribute with any <applet> tag, even if the class
referenced by the tag's code attribute does not exist in the archive. If
the class is not found in the archive, the browser simply attempts to
retrieve the class relative to the document URL or the codebase URL, if
18.104.22.168. The code and codebase attributes
The code attribute is required with <applet> . Use code to specify the fi-
lename, not the URL, of the Java class to be executed by the browser.
Like <object> , make the search relative to another storage location by
using the codebase attribute, described earlier in section 22.214.171.124 , or an
of the filename should be .class . If you don't include the suffix, some
browsers append .class automatically when searching for the applet.
Here is our clock example from earlier rewritten as an <applet> :
<applet code="clock.class" codebase="http://www.kumquat.com/classes/">
which the browser retrieves and displays from: