Basic HTML

Advance HTML

HTML Tags Reference

HTML Code Generator


HTML <object> Tag


HTML <object> tag define an embedded multimedia object (like audio, video, flash, image, activeX).


Example-Code:

<object width="500" height="250" data="iloveyou.swf" >
</object>
Online Try This Code Your Self....   »

<object> tag Attributes

<object> tag supported following special attributes.

Attributes Value Description
data "URL" specifies the URL audio/video Sorce.
height "Pixels" specifies the object height
name "Class_Id" specifies the object name
type "audio/wav" specifies a type of object file
usemap "Map_Name" specifies the name of client-side image map, which we have to used as object
width "URL" specifies the object width

Dynamic Attributes

<object> tag supported following Dynamic attributes.


Attributes Value Description
id ID_Name Declared unique id for the element.
class Predefined_Class Used in Cascading Style Sheet (CSS).
style style_Attributes CSS code specify inline the HTML element is presented.
title Title_Description Display on the "tooltip" for your elements.

Event Attributes

<object> tag supported following Event attributes.:

Attributes Value Description
onclick "Java_script" clicked on object when script tobe run.
ondblclick "Java_script" double click on object when script tobe run.
onkeydown "Java_script" key is pressed when script tobe run.
onkeypress "Java_script" key is pressed over element then released when script tobe run.
onkeyup "Java_script" key is released over element when script tobe run.
onmousedown "Java_script" mouse button was pressed over an element when script tobe run.
onmouseout "Java_script" mouse pointer release over an element when script tobe run.
onmousemove "Java_script" run mouse pointer moved when script tobe run.
onmouseover "Java_script" run mouse pointer move over when script tobe run.
onmouseup "Java_script" mouse button is released when script tobe run.