The HTML Attribute reference

"archive" - html Attribute

  • This attribute specifies a comma-separated list of URIs for archives containing classes and other resources that will be "preloaded".
  • For a applet this could be a jar file containing the applet class and other java classes used by the applet.

Value(s): uri-list

Attribute "archive" example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
<!-- some browsers need the The Document Type Declaration -->
<html >
 <head>
  <title>Object element example</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
 </head>
 <body>
  <p>
  <object classid="java:app.AppletTester.class"
          type="application/x-java-applet"
          archive="AppletTester.jar"
          height="100" width="300" >
   <!-- Konqueror browser needs the following param -->
   <param name="archive" value="AppletTester.jar" />
   <param name ="code" value = "app.AppletTester" />
  </object>
   </p>
 </body>
</html>
Used in the element(s):
Elements Description
applet (deprecated) This element is used to embed Java applets.
object This element is used to include objects such as images, audio, videos, Java applets, and Flash animations.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.