HTML <object> Tag

Description:

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

 

Specific Attributes:

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

Other Attributes:

Attribute Definition
dir

Specifies the text direction for the content in an element.
Possible Values:

  • rtl  (Right to Left)
  • ltr  (Left to Right)
class Specifies a classname for an element.
id Specifies a unique id for an element.
lang Specifies a language code for the content in an element.
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Specifies an inline style for an element.
tabindex Specifies the tab order of an element
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

Example Code:

<object title="Elevator" classid="elevator.class">
  <param name="audio" value="elev.au">
  <param name="width" value="200">
  <param name="height" value="100">
</object>