|
|
HTML <object> tag
Syntax
<object> - </object>
Definition and Usage
The OBJECT element is used to include objects
such as images, videos, Java applets, and VRML
worlds. The OBJECT element is intended to replace the more
specific IMG
and APPLET
elements, though a lack
of browser support makes the IMG and APPLET elements a better choice for the time being.
Optional Attributes
| Attribute |
Value |
Description |
| align |
left
right
top
bottom |
Defines the text alignment around the object |
| archive |
URL |
A space separated list of URL's to archives. The archives
contains resources relevant to the object |
| border |
pixels |
Defines a border around the object |
| classid |
class ID |
Defines a class ID value as set in the Windows Registry
or a URL |
| codebase |
URL |
Defines where to find the code for the object |
| codetype |
MIME type |
The internet media type of the code referred to by the
classid attribute |
| data |
URL |
Defines a URL that refers to the object's data |
| declare |
declare |
Defines that the object should only be declared, not
created or instantiated until needed |
| height |
pixels |
Defines the height of the object |
| hspace |
pixels |
Defines the horizontal spacing around the object |
| name |
unique_name |
Defines a unique name for the object |
| standby |
text |
Defines a text to display while the object is loading |
| type |
MIME_type |
Defines the MIME type of data specified in the data
attribute |
| usemap |
URL |
Specifies a URL of a client-side image map to be used
with the object |
| vspace |
pixels |
Defines the vertical spacing around the object |
| width |
pixels |
Defines the width of the object |
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.
Example
| Source |
Output |
<P ALIGN=center>
<OBJECT DATA="test.mov"TYPE="video/quicktime"></OBJECT>
</P> |
N/A
|
|
|