HTML tag Example Use Adding a Flash file in HTML with the element: Try it » Browser support Currently most browsers support the tag. Tag Definition and Usage Notes Defines an embedded object. Use this element to add multimedia to your XHTML page. It lets you specify the data and parameters of the object inserted into the HTML document, as well as code that can be used to display and manipulate the data. The tag is used to contain objects such as images, audio, video, Java applets, ActiveX, PDF, and Flash. The original intention of object was to replace the img and applet elements. However, due to vulnerabilities and lack of browser support, this was never realized. Browser support for objects depends on the object type. Unfortunately, major browsers use different code to load the same object type. Fortunately, the object element provides a solution. If the object element is not displayed, the code located between and is executed. In this way, we can nest multiple object elements (one for each browser). Differences between HTML 4.01 and HTML5 Some HTML 4.01 attributes are not supported in HTML5. "form" is a new attribute defined in HTML5. In HTML5, objects can be submitted in a form. In HTML5, objects no longer appear inside the element area. property New: new attribute in HTML5. property Value Description align top bottom middle left right Not supported in HTML5. Deprecated in HTML 4.01. Specifies the The alignment of the element relative to surrounding elements. archive URL Not supported in HTML5. A space-separated list of URLs pointing to archive files that contain resources related to the object. border pixels Not supported in HTML5. Deprecated in HTML 4.01. Specifies the the width of the border around it. classid class_ID Not supported in HTML5. Defines the ID of a class embedded in the Windows Registry or at a URL; this attribute can specify the location of the object contained by the browser, typically a Java class. codebase URL Not supported in HTML5. Defines where the code needed by the object can be found, providing a base URL. codetype MIME_type Not supported in HTML5. The MIME type of the code referenced by the classid attribute. data URL Specifies the URL of the resource used by the object. declare declare Not supported in HTML5. Defines that the object can only be declared but not created or instantiated until it is used. formNew form_id Specifies one or more forms to which the object belongs. height pixels Specifies the height of the object. hspace pixels Not supported in HTML5. Deprecated in HTML 4.01. Specifies the whitespace to the left and right of the object. name name Specifies a name for the object. standby text Not supported in HTML5. Defines the text displayed while the object is loading. type MIME_type Specifies the MIME type of the data specified in the data attribute. usemap #mapname Specifies the name of the client-side image map used with the object. vspace pixels Not supported in HTML5. Deprecated in HTML 4.01. Specifies the whitespace above and below the object. width pixels Specifies the width of the object. Global Attributes The tag supports global attributes; see the full list in HTML Global Attributes. Event attribute The tag supports all HTML Event Attributes. Related Articles HTML Tutorial:The HTML Object Element