HTML Home
HTML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM
|
HTML <object> tag
Function:
The HTML <object> tag is used to embed multimedia in an HTML document. The <param> tag is also used along with this tag to define various parameters.
Difference between HTML and XHTML:
NONE
Example:
<object title="Test Object." classid="java.class">
<param name="audio" value="music.wav" />
<param name="width" value="600" />
<param name="height" value="400" />
</object>
|
Further detail on <object> tag can be found in Embed Multimedia Chapter.
Attributes:
Attribute | Value | Description |
align | left right top bottom | Defines visual alignment of the object |
archive | URL | A space separated list of URL's to archives. |
border | pixels | Specifies border width around the object |
classid | Class ID | Defines a class ID value as set in the Windows Registry or a URL. |
codebase | URL | Specifies tha path where object code is located. |
codetype | mime type | The internet media type of the code referred to by the classid attribute. |
data | URL | Specifies the URL for Object data. |
declare | declare | Defines that the object should only be declared, not created or instantiated until needed. |
height | pixels | Specifies the hight of the object. |
hspace | pixels | Specifies the horizontal space around the object. |
name | object name | Specifies 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 | Specifies the vertical space around the object. |
width | pixels | Specifies the width of the object. |
Standard Attributes:
Attribute | Description |
class | Document wide identifier |
dir | Specifies the direction of the text |
id | Document wide identifier |
title | Specifies a title to associate with the element. |
style | Helps to include inline casecadubf style sheet. |
lang | Sets the language code. |
xml:lang | Sets the language code. |
tabindex | Helps determine the tabbing order |
accesskey | Access keys (or shortcut keys) |
Event Attributes:
Attribute | Description |
onclick | Script runs when a mouse click |
ondblclick | Script runs when a mouse double-click |
onmousedown | Script runs when mouse button is pressed |
onmouseup | Script runs when mouse button is released |
onmouseover | Script runs when mouse pointer moves over an element |
onmousemove | Script runs when mouse pointer moves |
onmouseout | Script runs when mouse pointer moves out of an element |
onkeypress | Script runs when key is pressed and released |
onkeydown | Script runs when key is pressed |
onkeyup | Script runs when key is released |
|
|
|