HTML <object> tag
Definition and Usage
Defines an embedded object. Use this element to add multimedia to
your XHTML page. This element allows you to specify the data and parameters for
objects inserted into HTML documents, and the code that can be used to
display/manipulate that data.
Differences Between HTML and XHTML
NONE
Tips and Notes
Note: An object element can appear inside the head or the body
element. The text between the <object> and </object> is the
alternate text, for browsers that do not support this tag. The <param>
tags define run-time settings for the object.
Tip: For images use the <img> tag instead of the <object>
tag.
Example
| Source |
Output |
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628"
id="Slider1" width="100" height="50">
<param name="BorderStyle" value="1" />
<param name="MousePointer" value="0" />
<param name="Enabled" value="1" />
<param name="Min" value="0" />
<param name="Max" value="10" />
</object> |
|
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| align |
left
right
top
bottom |
Defines the text alignment around the object |
TF |
| archive |
URL |
A space separated list of URL's to archives. The archives contains
resources relevant to the object |
STF |
| border |
pixels |
Defines a border around the object |
TF |
| classid |
class ID |
Defines a class ID value as set in the Windows Registry or
a URL |
STF |
| codebase |
URL |
Defines where to find the code for the object |
STF |
| codetype |
MIME type |
The internet media type of the code referred to by the
classid attribute |
STF |
| data |
URL |
Defines a URL that refers to the object's data |
STF |
| declare |
declare |
Defines that the object should only be declared, not
created or instantiated until needed |
STF |
| height |
pixels |
Defines the height of the object |
STF |
| hspace |
pixels |
Defines the horizontal spacing around the object |
TF |
| name |
unique_name |
Defines a unique name for the object (to use in scripts) |
STF |
| standby |
text |
Defines a text to display while the object is loading |
STF |
| type |
MIME_type |
Defines the MIME type of data specified in the data attribute |
STF |
| usemap |
URL |
Specifies a URL of a client-side image map to be used with the object |
STF |
| vspace |
pixels |
Defines the vertical spacing around the object |
TF |
| width |
pixels |
Defines the width of the object |
STF |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| accesskey, tabindex, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event
Attributes.
NEW! Altova MissionKit 2007– Save ½ off Intelligent tools for XML developers & software architects
 | |
The Altova MissionKit 2007
bundles Altova’s application development, data management and
modeling tools at 50% off their regular prices. It is available in a
variety of configurations tailored to meet the needs of software
architects and XML developers. All MissionKits include the
world’s leading XML development tools: Altova
XMLSpy,
MapForce,
and StyleVision.
Gear
up; download a FREE 30-day trial today!
|
|