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
4 : indicates if the attribute is defined in HTML 4.01
5 : indicates if the attribute is defined in HTML 5
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 .
The Ektron Intranet
lets you do everything you need to do on your corporate intranet and everything you want to do... all with just one application .
What can you do with the Ektron Intranet?
Navigate through content, documents, assets, colleagues and workgroups quickly and intuitively with enterprise search
Communicate with friends and colleagues with forums, message boards and corporate blogging using the new Social Networking Platform
Promote collaboration among coworkers in your organization through project workspaces where others can efficiently find information and work together
Personalize your company profile by bookmarking and organizing favorite content, uploading assets, posting photos, blogging, and more
Interact with features like tagging , flagging, wikis and ratings found in the Web 2.0 Toolbox
Author/edit content, manage navigation, menus, audit trails, workflow and approvals with the best in breed Content Management
See why there are 20,000+ Ektron integrations worldwide. Request an
INSTANT DEMO or download a
FREE TRIAL today.