HTML and CSS Reference
In-Depth Information
junction with the
codebase
attribute to determine the full URL of the ob-
ject to be retrieved and placed in the document.
12.2.1.3. The archive attribute
For performance reasons, you may choose to preload collections of ob-
jects contained in one or more archives. This is particularly true of Java-
based applications, where one Java class relies on many other classes to
get its work done. The value of the
archive
attribute is a quote-enclosed
list of URLs, each pointing to an archive to be loaded by the browser
before it renders or executes the object.
12.2.1.4. The codetype attribute
The
codetype
attribute is required only if the browser cannot determine
an applet's MIME type from the
classid
attribute or if the server does
not deliver the correct MIME type when downloading an object. This at-
is used to identify program code type, whereas
type
should be used to
identify datafile types.
The following example explicitly tells the browser that the object's code
is Java:
<object code="clock.class" codetype="application/java">
</object>
12.2.1.5. The data attribute
Use the
data
attribute to specify the datafile, if any, that the object is
to process. The
data
attribute's value is the URL of the file, either abso-
lute or relative to the document's base URL or to that which you provide