Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

HTML object Tag

Print Version
 

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

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 object type when the object is specified by the data attribute. If absent, defaults to the value specified in the type attribute.
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 complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.

PLUS you get:

  • FREE Website Builder
  • FREE Blog
  • FREE Starter Web Page
  • FREE Email Account
  • & much more! (Total value $123 for FREE!)
Get your FREE hosting today! >>