An embedded multimedia object. The HTML <object> tag is used for embedding an object within an HTML document. Use this tag to embed multimedia in your web pages.
Users can use the <param> tag to pass parameters to plugins that have been embedded using the <object> tag.
Users can also use the <object> tag to embed another webpage into your HTML document.
Required Attributes
Optional Attributes
- classid can be used to specify the location of the object in the form of a URL or Windows Registry location.
- data can be used to specify the location of the data for the object in the form of a URL.
- codebase can be used to specify the base location from which relative URLs specified in the classid, data and archive attributes should be taken.
- declare can be used to specify that the object is a declaration only. It must be used in the format declare="declare".
- type can be used to specify the content type of the data specified by the data attribute.
- codetype can be used to specify the content type of the object.
- archive can be used to specify resources relevant to the object. The value should be a URL or a number of URLs separated by spaces.
- standby can be used to specify text that will be displayed while the object is loading.
- width can be used to specify the width of the object (in pixels). This can also be done with CSS.
- height can be used to specify the height of the object (in pixels). This can also be done with CSS.
- name can be used to specify a name by which the object can be referenced.
- tabindex can be used to specify where the element appears in the tab order of the page.
- Common attributes
Example
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="someplace/swflash.cab" width="200" height="300" id="penguin">
<param name="movie" value="flash/penguin.swf" />
<param name="quality" value="high" />
<img src="images/penguin.jpg" width="200" height="300" alt="Penguin" />
</object>
Changes in HTML5
Related Tags