HTML5 Tutorials & More

<object> Tag

The <object> tag is used to include objects such as images, audio, videos, Java applets, ActiveX, PDF, and Flash. The object 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.

Supported In HTML4: Yes

Supported In HTML5: Yes

HTML4 vs HTML5 Differences: Some HTML 4.01 attributes are not supported in HTML 5. The "form" attribute is new in HTML 5. Objects can be used and submitted in forms.

Attributes

Title Values Description HTML4 Support HTML5 Support
align left right top bottom Yes No
archive URL No No
border pixels No No
classid class_ID No No
codebase URL No No
data URL Defines a URL that refers to the object's data No No
declare declare No No
form formname Defines one ore more forms the object belongs to. No No
height pixels Defines the height of the object No No
hspace pixels No No
name unique_name Defines a unique name for the object (to use when a form is submitted). No No
standby text No No
type MIME_type Defines the MIME type of data specified in the data attribute No No
usemap URL Specifies a URL of a client-side image map to be used with the object No No
vspace pixels No No
width pixels Defines the width of the object No No

Standard Attributes

All standard attributes are supported.

Event Attributes

All event attributes are supported.

HTML5 Tags