Object

End Tag: Required
Support Key: 2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
The OBJECT element is a proposal from the W3C that will replace and absorb the many methods in use to include multi-media and embedded content in HTML documents. This element can replace all of the functionality in the existing APPLET, EMBED, BGSOUND, SOUND and IMG elements. In order to achieve this, the element has many attributes that require some explanation.

When using OBJECT in place of the APPLET element, the PARAM element is used exactly as it would be with the APPLET element.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
%Events%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
%Data%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Accesskey
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Required? No
Description:
This is a method of giving access/focus to an active HTML element using a keyboard character. This is a common GUI paradigm also known as a "keyboard shortcut" or "keyboard accelerator" A single character is used as the value of this attribute. In addition, a platform-dependent key is usually used in combination with the ACCESSKEY character to access the functionality of the active field.
Values:
A single, case-insensitive alphanumeric character from a browser's character set.
Align
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute specifies the alignment of text following the OBJECT reference relative to the object on screen. LEFT and RIGHT specify floating horizontal alignment of the object in the browser window, and subsequent content will wrap around the object. The other options specify vertical alignment of text relative to the object on the same line.
Values:
Left | Right | Top | Texttop | Middle | Absmiddle | Baseline | Bottom | Absbottom
Border
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This controls the thickness of the border around the object (in pixels.)
Values: 0, for no border, or a positive integer value.
ClassID
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute is a URL indicating the implementation for the OBJECT. In some systems this is a class identifier.
Values: An absolute or relative URL
Code
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Required? Yes
Description:
This attribute indicates a URL pointing to the Object's code/class.
Values: An absolute or relative URL.
CodeBase
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute allows the author to specify the URL of the OBJECT's implementation, which some URL schemes require in addition to the CLASSID URL.
Values: An absolute or relative URL
CodeType
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute specifies the MIME type of the code referenced by the CLASSID attribute in advance of actually retrieving it. Browsers may use this value to skip over unsupported MIME types without needing to make a network access.
Values: Alphanumeric MIME type
Data
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute indicates a URL pointing to the OBJECTs data, such as a GIF file for an image. If the CLASSID attribute is absent, the media (MIME) type of the data is used to determine a default value for the CLASSID attribute. The implementation is then loaded as if the CLASSID attribute had been explicitly specified.
Values: An absolute or relative URL
Declare
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This is a stand-alone attribute which indicates an object that is not created or instantiated until needed by something that references it (i.e. late binding.) Each such "binding" typically results in a separate copy of the object (this is class dependent.) So in such cases, DECLARE is treated as a declaration for making an instance of an object. See the DECLARE explanation in the OBJECT specification for more details.
Values: NA
Height
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute explicitly specifies the height of the object in pixels. It can be used to speed up display of the document being downloaded so it can pre-render the document with object placeholders while the object downloads.
Values: Positive integer pixel values
HSpace
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This attribute specifies the horizontal spacing around objects in pixels (left and right padding.)
Values: Positive integer pixel values
Name
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This provides a way for the object to participate in a FORM submission process. If the NAME attribute is specified and the DECLARE attribute is absent, then the browser should use the data obtained from the OBJECT [the method used to obtain the data from the object is specific to each object] paired with the NAME in the FORM submission process.
Values: Alphanumeric string
Standby
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This allows you to specify a short text string for the browser to display while it loads the OBJECT's implementation and data. The character data can include character entities.
Values: Alphanumeric text
Tabindex
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
"Tabbing" is a method of giving access/focus to an active HTML element using a standard keyboard sequence. All the active elements in a document can be cycled through using this sequence (ex: Windows TAB key.) The order of the active elements in this cycle is usually the order they occur in the document, but the TABINDEX attribute allows a different order to be established. The use of this attribute should create the following tabbing order cycle if the browser supports the attribute:
  1. Active elements using the TABINDEX attribute with positive integers are navigated first. Low values are navigated first.
  2. Active elements not specifying any TABINDEX attribute
Those elements carrying a DISABLED attribute or using negative TABINDEX values do not participate in the tabbing cycle.
Values: Positive or negative integers.
Type
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute specifies the MIME type of the data referenced in the DATA attribute in advance of retrieving it. In the absence of the CLASSID attribute, it allows the browser to retrieve the code implementing the OBJECT concurrently with the data and to skip over unsupported MIME types without having to make network accesses.
Values: Alphanumeric MIME type
UseMap
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute specifies the URL (usually internal to the document) of the client-side image map specification to be used if the browser has that capability. If the argument to USEMAP begins with a "#" it is assumed to be in the current document. Client-side coordinate mapping is done by the browser, so is inherently faster in processing the coordinates than the old ISMAP process for the IMG element. This attribute is usually only used for static image OBJECTs.
Values: An absolute or relative URL or an internal anchor name.
VSpace
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This attribute specifies the vertical spacing around objects in pixels (top and bottom padding.)
Values: Positive integer pixel values
Width
2 | 3 | 3.2 | 4 | IE3A1 | M | N | O
Required? No
Description:
This attribute explicitly specifies the width of the object in pixels. It can be used to speed up display of the document being downloaded so it can pre-render the document with object placeholders while the object downloads.
Values: Positive integer pixel values
Example
<object CODETYPE="application/java-vm" CODEBASE="http://www.foo.com/applet.class"
CLASSID="java:program.start" HEIGHT="100" WIDTH="100">
<param NAME="options" VALUE="xqz">
   If you can read this you are too close.<br>
   AND your browser does not support Java.
</object>
Parent Model
%In-line Parent% | %Block Parent%
Content Model
%In-line Content% | %Block Content% | <param>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...