Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML
IMCreator - Free Website Builder

HTML object Tag

The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.

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

You can also use the <param> tag to supply parameters to your embedded object.

Example
<object title="Woofer dog." classid="wooferDog.class">
  <!-- If the applet didn't work, try the image file -->
  <object data="wooferDog.gif" type="image/gif">
  <!-- If the image didn't work, display the text -->
  Woofer dog.
  </object>
</object>

In this example, if the applet can't be loaded, it will attempt to load the file specified next (the image file). If that can't be loaded, it will display the text specified next.

Attributes:
Attributes specific to this tag:
AttributeDescription
classidSpecifies the location of the object either as a URI or a Windows Registry location.
codebaseSpecifies the URI of the applet.
codetypeSpecifies object type when the object is specified by the classid attribute. If absent, defaults to the value specified in the type attribute.
dataSpecifies the location of data to be used by the object.
typeSpecifies the object type as specified in the data attribute. Must be a valid MIME type.
archiveSpace-separated list of archive URI's containing resources to be preloaded.
declareSpecifies to only declare the object at this stage. The object would then need to be instatiated by a separate object definition referring to this declaration.
standbySpecifies a message to display to the user while the object is loading.
Other Attributes:
AttributeDescription
classDocument wide identifier.
idDocument wide identifier
dirSpecifies the direction of the text
langLanguage code
styleInline style (CSS).
titleSpecifies a title to associate with the element.
tabindexHelps determine the tabbing order (when the user 'tabs' through the elements on the page).
nameForm submission. Assigns the control name.
usemapImage map.
widthWidth to display the object.
heightHeight to display the object.
borderSpecifies a border for the object.
alignVisual alignment (i.e. bottom, middle, top, left, right). Deprecated.
hspaceAmount of white space to be inserted to the left and right of the object. Deprecated.
vspaceAmount of white space to be inserted above and below the object. Deprecated.
onclickIntrinsic event (see event handlers)
ondbclickIntrinsic event (see event handlers)
onmousedownIntrinsic event (see event handlers)
onmouseupIntrinsic event (see event handlers)
onmouseoverIntrinsic event (see event handlers)
onmousemoveIntrinsic event (see event handlers)
onmouseoutIntrinsic event (see event handlers)
onkeypressIntrinsic event (see event handlers)
onkeydownIntrinsic event (see event handlers)
onkeyupIntrinsic event (see event handlers)

Also see the HTML 5 version of HTML tags

Enjoy this page?

  1. Link to this page (copy/paste into your own website or blog):
  2. Link to Quackit using one of these banner ads.

Thanks for supporting Quackit!