<

HTML <object> Tag

The <object> tag defines an embedded object within an HTML document. Use this element to embed multimedia (like audio, video, Java applets, ActiveX, PDF, and Flash) in your web pages.

Attributes



Attribute Value Description
align top
bottom
middle
left
right
Not supported in HTML5.
Specifies the alignment of the <object> element according to surrounding elements
archive URL Not supported in HTML5.
A space separated list of URL's to archives. The archives contains resources relevant to the object
border pixels Not supported in HTML5.
Specifies the width of the border around an <object>
classid class_ID Not supported in HTML5.
Defines a class ID value as set in the Windows Registry or a URL
codebase URL Not supported in HTML5.
Defines where to find the code for the object
codetype media_type Not supported in HTML5.
The media type of the code referred to by the classid attribute
data URL Specifies the URL of the resource to be used by the object
declare declare Not supported in HTML5.
Defines that the object should only be declared, not created or instantiated until needed
form form_id Specifies one or more forms the object belongs to
height pixels Specifies the height of the object
hspace pixels Not supported in HTML5.
Specifies the whitespace on left and right side of an object
name name Specifies a name for the object
standby text Not supported in HTML5.
Defines a text to display while the object is loading
type media_type Specifies the media type of data specified in the data attribute
usemap #mapname Specifies the name of a client-side image map to be used with the object
vspace pixels Not supported in HTML5.
Specifies the whitespace on top and bottom of an object
width pixels Specifies the width of the object


Example



<!DOCTYPE html>
<html>
<body>

<object width="400" height="400" data="install.swf">
</object>
 
</body>
</html>

















© copyright 2017-2022 Completedone pvt ltd.