HTML <object> Tag


The <object> tag is used for embedding an object within an HTML document. Use this tag to embed multimedia in your web pages.

Example Code:
<object title="Elevator" classid="elevator.class">
  <param name="audio" value="">
  <param name="width" value="200">
  <param name="height" value="100">
Attribute Definition
classid Defines a class ID value as set in the Windows Registry or a URL
codebase Defines where to find the code for the object
codetype The internet media type of the code referred to by the classid attribute
data Defines a URL that refers to the object's data
type Defines the MIME type of data specified in the data attribute
archive A space separated list of URL's to archives. The archives contains resources relevant to the object
declare Defines that the object should only be declared, not created or instantiated until needed
standby Defines a text to display while the object is loading
name Defines the name for an object (to use in scripts)
usemap Specifies a URL of a client-side image map to be used with the object
width Defines the width of the object
height Defines the height of the object
border Defines a border around the object
align Defines the text alignment around the object
hspace Defines the horizontal spacing around the object
vspace Defines the vertical spacing around the object
Global Attributes:

The <object> tag also supports the Global Attributes in HTML5

Event Attributes:

The <object> tag also supports the Event Attributes in HTML5