When adding an object in the HTML document, it is necessary to put definition to it. The HTML5 <object> tag is the key which enables HTML authors to do this. When embedding video, audio, PDF, Flash and other objects in the document, the HTML5 <object> tag has to be used.
Aside from adding objects, the HTML5 <object> tag is also useful when it comes to embedding another webpage within the HTML document. If plugins are incorporated in the document, using the <param> tag is important because this is what sets the parameters of the plugins.
Using the HTML5 <object> tag is slightly deviated when HTML4.01 and HTML5 are compared. HTML has not recognized most of the attributes used in HTML4.01. HTML5 has a new attribute too which is the form attribute.
Utilization of the HTML5 <object> tag is not a complex process since the Global Attributes and Event Attributes in HTML5 can go well with it. Even the major web browsers do not have problems in interpreting HTML5 <object> tag. That means the HTML5 <object> tag is applicable for Internet Explorer, Safari, Google Chrome, Opera and Firefox.
The attributes that are used for HTML5 <object> tag are these:
|
Attribute
|
Value
|
Description
|
|
align
|
left
right
top
bottom
|
This is no longer accepted and used in HTML5
|
|
archive
|
URL
|
This is no longer accepted and used in HTML5
|
|
border
|
pixels
|
This is no longer accepted and used in HTML5
|
|
classid
|
class_ID
|
This is no longer accepted and used in HTML5
|
|
codebase
|
URL
|
This is no longer accepted and used in HTML5
|
|
codetype
|
MIME_type
|
This is no longer accepted and used in HTML5
|
|
data
|
URL
|
This is the tool in identifying the URL that points to the resource that will be
used for the object
|
|
declare
|
declare
|
This is no longer accepted and used in HTML5
|
|
form
|
form_id
|
This is important for determining one or more forms that the object has to work
along with
|
|
height
|
pixels
|
This is used for determining the height for the object inserted in the HTML
document
|
|
hspace
|
pixels
|
This is no longer accepted and used in HTML5
|
|
name
|
name
|
It has to be placed for providing a name for the object
|
|
standby
|
text
|
This is no longer accepted and used in HTML5
|
|
type
|
MIME_type
|
If incorporating the MIME type of data for the data attribute is necessary, this
is used
|
|
usemap
|
#mapname
|
It is the key in providing the name for the client-side image map which is used
along with the object
|
|
vspace
|
pixels
|
This is no longer accepted and used in HTML5
|
|
width
|
pixels
|
It is the one that provides the width of the object in the document
|