Name
<object> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
Synopsis
<object>...</object>
Places an object (such as an applet, media file, etc.) on a web page.
It is similar to the <embed>
tag. The
<object>
tag often contains information for
retrieving ActiveX controls that Internet Explorer on Windows uses to
display the object.
Attributes
-
textmiddle|texttop
Aligns object with respect to surrounding text.
-
border=number
Sets the width of the border in pixels if the object is a link.
-
classid=
url
Identifies the class identifier of the object. The syntax depends on the object type.
-
codebase=
url
Identifies the URL of the object’s codebase. Syntax depends on the object.
-
codetype=
codetype
MSIE 3.0/4.0 and HTML 4.0 Spec only. Specifies the media type of the code.
-
data=
url
Specifies the URL of the data used for the object. The syntax depends on the object.
-
declare
MSIE 3.0 and HTML 4.0 Spec only. Declares an object without instantiating it.
-
height=
number
Specifies the height of the object in pixels.
-
hspace=
number
Holds n pixels space clear to the left and right of the object.
-
name=
text
Specifies the name of the object to be referenced by scripts on the page.
-
shapes
MSIE 3.0 and HTML 4.0 Spec only. Indicates that the object contains an imagemap.
-
standby=
message
MSIE 3.0 and HTML 4.0 Spec only. Specifies message to display during object loading.
-
type=
type
Specifies the media type for the data.
-
usemap=
url
Specifies image map to use with the object.
-
vspace=
number ...
Get Web Design in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.