HTML object

From Htmlpedia
Jump to: navigation, search

HTML Element OBJECT

Definition and Usage

The <object> tag allows to embed data. The type of data that is to be embedded is specified with the type attribute.

Images, videos, sounds, web pages and more can be embedded.


Examples

<object height="100%" width="100%" type="image/jpeg" data="example.jpeg"></object>


Flash Movie:

<object height="100px" width="100px" type="application/x-shockwave-flash" data="http://www.example.com/path/file.swf"><param name="allowfullscreen" value="true"/></object>

Attributes

Optional attributes

type, data, declare, classid, codebase, codetype, archive, standby, width, height, usemap, name, tabindex

Standard Attributes

id, class, title, style

Event Attributes

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup


References


Back to HTML Elements