Name

<object> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; 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

align=baseline|center|left|middle|right| textbottom|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

Internet Explorer 3.0/4.0 and HTML 4.0 Specification only. Specifies the media type of the code. Examples of code types include audio/basic, text/html, and image/gif.

data=url

Specifies the URL of the data used for the object. The syntax depends on the object.

declare

Internet Explorer 3.0 and HTML 4.0 Specification only. Declares an object without instantiating it.

height=number

Specifies the height of the object in pixels.

hspace=number

Holds a number of 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

Internet Explorer 3.0 and HTML 4.0 Specification only. Indicates that the object contains an imagemap.

standby=text message

Internet Explorer 3.0 ...

Get HTML Pocket Reference 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.