HTML - OBJECT
<OBJECT ARCHIVE="URL" CLASSID="ID" CODEBASE="URL" DATA="URL" DECLARE="DECLARE" STANDBY="Standby text" TYPE="mime-type" USEMAP="URL">
    <PARAM NAME="name" VALUE="value"/>
</OBJECT>

ARCHIVE: This attribute contains a URL for the location of an archive file. An archive file is typically used to contain multiple object files to improve download time.

CLASSID: This attribute contains the URL for an object's implementation. The URL syntax depends on the object's type. With ActiveX controls, the value of this attribute is not a URL but something of the form CLSID:object-id. For example CLSID:99B42120-6EC7-11CF-A6C7-00AA00A47DD2. For Java applets, use CLASSID="java:classname.class">

CODEBASE: This attribute contains a URL to use as a relative base to access the object specified by the CLASSID attribute.

CODETYPE: This attribute specifies an object's MIME type. Do not confuse this attribute with TYPE, which specifies the MIME type of the data the object may use as defined by the DATA attribute

DATA: This attribute contains a URL for data required by an object.

DECLARE: This attribute declares an object without instantiating it. This is useful when an object will be a parameter to another object.

STANDBY: This attribute contains a text message to be displayed while the object is loading

TYPE: This attribute specifies the MIME type for the object's data. This is different from the CODETYPE attribute, which is the MIME type of the object and not the data it uses.

<OBJECT CLASSID="java:blink.class" STANDBY="Please wait...">
    <PARAM NAME="lb" VALUE="Java is fun"/>
    <PARAM NAME="speed" VALUE="2"/>
</OBJECT>

Alternative content should be defined within the <OBJECT> element after the <PARAM> elements.

While the specification defines that it can load in HTML files, and can be used as image maps, few, if any, browsers support this.

<object classid="java:program.start">
 <!-- The value for the missing CODEBASE attribute, used to locate the implementation, defaults to the same base URL as the document -->
</object>
<object classid="http://.../analogclock.py">
 <!-- The classid attribute gives a URL for the Python code implementing the applet -->
</object>
<object id=clock1 classid="clsid:663C8FEF-1EF9-11CF-A3DB-080036F12502" data="http://www.acme.com/ole/clock.stm">
 <!-- ActiveX control.  Is this the string to use for embedding IE? -->
 <!-- The DATA attribute points to data used to initialize the object's state -->
 <!-- Note that ActiveX data streams include a class identifier that can be used by the ActiveX loader to find an implementation -->
 <!-- in the absence of the classid attribute. -->
 <!-- The CODEBASE attribute can be used to give a URL as a hint to the ActiveX loader on where to find implementation for this class -->
</object>
<object id=clock1 classid="clsid:663C8FEF-1EF9-11CF-A3DB-080036F12502" data="data:application/x-oleobject;base64, ...base64 data...">
 <!-- For speedy loading of objects you can inline the object's state data using the URL scheme data: -->
 <!-- Inline data is only recommended for small amounts of data -->
</object>

An OBJECT markup with the DECLARE attribute is not created until later needed by something that reference it.

To allow PARAM values to be "object valued", that is the value of the parameter is a pointer to an object.

To allow hypertext links to point to the objects which can't otherwise be addressed using single URL. Anchors can exploit nested declared objects to provide

alternative media for given source.

The PARAM element allows a list of named property values (used, for example, to initialize an ActiveX control, plug-in module or Java applet) to be represented as a sequence of PARAM element.

<object declare id=tribune type="application/x-webfont" data=tribune.gif>
 <!-- This is the font object -->
</object>
<object classid="http://..." data="filename.txt">
 <!-- This is the applet viewer -->
 <param name=font value="#tribune" />
 <!-- This is a hypothetical example of an applet for viewing poems.  The poem is passed to the viewer applet via the DATA attribute. -->
 <!-- The viewer applet recognizes a parameter name "font" that defines the font as an object.  The VALUE attribute uses a URL fragment -->
 <!-- identifier #tribune to point to the font object. -->
</object>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License