HOME

XHTML Tags
<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>

Standard
Attributes
Events

Please visit our sponsors !

The <object> tag


Definition and Usage

Defines an embedded object. Use this element to insert  multimedia into your XHTML page. This element allows you to specify the data and parameters for objects inserted into HTML documents, and the code that can be used to display/manipulate that data.


Tips and Notes

Note: An object element can appear inside the head or the body element. The text between the <object> and </object> is the alternate text, for browsers that do not support this tag. The <param> tag defines run-time settings for an object.

Tip: For images use the <img> tag instead of the <object> tag.


Example

XHTML Output
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">
<param name="BorderStyle" value="1"></param>
<param name="MousePointer" value="0"></param>
<param name="Enabled" value="1"></param>
<param name="Min" value="0"></param>
<param name="Max" value="10"></param>
</object>


Optional Attributes

DTD indicates in which XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
align left
right
top
bottom
Defines the text alignment around the object TF
archive URL A space separated list of URL's to archives. The archives contains resources relevant to the object STF
border pixels Defines a border around the object TF
classid class ID Defines a class ID value as set in the Windows Registry or a URL STF
codebase URL Defines where to find the code for the object STF
codetype MIME type The internet media type of the code referred to by the classid attribute STF
data URL Defines a URL that refers to the object's data STF
declare declare Defines that the object should only be declared, not created or instantiated until needed STF
height pixels Defines the height of the object STF
hspace pixels Defines the horizontal spacing around the object TF
name unique_name Defines a unique name for the object (to use in scripts) STF
standby text Defines a text to display while the object is loading STF
type MIME_type Defines the MIME type of data specified in the data attribute STF
usemap URL Specifies a URL of a client-side image map to be used with the object STF
vspace pixels Defines the vertical spacing around the object TF
width pixels Defines the width of the object STF

Standard Attributes

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.

Event Attributes

accesskey, tabindex, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.


Jump to: Top of Page or HOME or Printer Friendly Printer friendly page


Search W3Schools:


What Others Say About Us

Does the world know about us? Check out these places:

Dogpile Alta Vista MSN Google Excite Lycos Yahoo Ask Jeeves


We Help You For Free. You Can Help Us!


W3Schools is for training only. We do not warrant its correctness or its fitness for use. The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2002 by Refsnes Data. All Rights Reserved


Validate How we converted to XHTML Validate

IISProtect
Password Protect
Your Web Pages



Your own Web Site?

Read W3Schools
Hosting Tutorial



ASP Hosting
ASP.net Hosting
Web Hosting



$15 Domain Name
Registration
Save $20 / year!



Advertise
at W3Schools

Only 0.5 CPM



SELECTED LINKS

Books Online

Web Software

The Future of
Web Development


Jobs and Careers

Web Security
Web Statistics
Web Standards


PARTNERS

W3Schools
TopXML
VisualBuilder
XMLPitstop
DevelopersDex
DevGuru
Programmers Heaven
The Code Project
Tek Tips Forum
ZVON.ORG
TopXML Search