Name
<object> — NN 3, 4, 6 MSIE 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<object>...</object>
A generic element used for placing an object (such as an image,
applet, media file, etc.) on a web page. It is similar to the
<embed> tag but is the W3C’s approved
method for adding elements to a page. Browser support for the
<object> tag is not up to standards. Support in Navigator 4 is
buggy, and in IE 4 (and even 5), the tag is generally useful only for
ActiveX controls.
Attributes
-
align=baseline|center|left|middle|right|textbottom|textmiddle|texttop Deprecated. Aligns object with respect to surrounding text. See the <img> tag for explanations of the
alignvalues.
-
archive=urls Specifies a space-separated list of URLs for resources that are related to the object.
-
border=number Nonstandard. Sets the width of the border in pixels if the object is a link.
-
classid=url Identifies the location of an object’s implementation. It is used with or in place of the
dataattribute. The syntax depends on the object type.
-
codebase=url Identifies the base URL used to resolve relative URLs in the object (similar to
<base>). By default, the codebase is the base URL of the current document.
-
codetype=codetype Specifies the media type of the code. It is required only if the browser cannot determine an applet’s MIME type from the
classidattribute or if the server does not deliver the correct MIME type when downloading the object.
-
data=url Specifies the URL of the data used for the object. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access