From http://www.w3schools.com (Copyright Refsnes Data)

HTML 5 <object> tag


Definition and Usage

Defines an embedded object. Use this element to add multimedia to your HTML page. This element allows you to specify the data and parameters for objects inserted into HTML documents, and the code that can be used to display/manipulate that data.


Differences Between HTML 4.01 and HTML 5

Some HTML 4.01 attributes are no longer supported.


Tips and Notes

Note: An object element can appear inside the head or the body element. The text between the <object> and </object> is the alternate text, for browsers that do not support this tag. The <param> tags define run-time settings for the object.

Tip: For images use the <img> tag instead of the <object> tag.

Tip: At least one of the "data" and "type" attributes MUST be defined.


Example

Source Output
<object id="Slider1" width="100" height="50">
  <param name="BorderStyle" value="1" />
  <param name="MousePointer" value="0" />
  <param name="Enabled" value="1" />
  <param name="Min" value="0" />
  <param name="Max" value="10" />
</object>


Attributes

Attribute Value Description 4 5
align left
right
top
bottom
Defines the text alignment around the object. Not supported. Use CSS instead. 4  
archive URL A space separated list of URL's to archives. The archives contains resources relevant to the object. Not supported 4  
border pixels Defines a border around the object. Not supported. Use CSS instead. 4  
classid class ID Defines a class ID value as set in the Windows Registry or a URL. Not supported. 4  
codebase URL Defines where to find the code for the object. Not supported. 4  
codetype MIME type The internet media type of the code referred to by the classid attribute. Not supported. 4  
data URL Defines a URL that refers to the object's data 4 5
declare true
false
Defines that the object should only be declared, not created or instantiated until needed. Not supported. 4  
height pixels Defines the height of the object 4 5
hspace pixels Defines the horizontal spacing around the object. Not supported. Use CSS instead. 4  
name unique_name Defines a unique name for the object (to use in scripts). Not supported. Use id instead. 4  
standby text Defines a text to display while the object is loading. Not supported. 4  
type MIME_type Defines the MIME type of data specified in the data attribute 4 5
usemap URL Specifies a URL of a client-side image map to be used with the object 4 5
vspace pixels Defines the vertical spacing around the object. Not supported. Use CSS instead. 4  
width pixels Defines the width of the object 4 5

Standard Attributes

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title

For a full description, go to Standard Attributes in HTML 5.

Event Attributes

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

For a full description, go to Event Attributes in HTML 5.


From http://www.w3schools.com (Copyright Refsnes Data)