Categories
- HTML Books
- HTML Colors
- HTML Characters
- HTML 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>
- <h1>
- <h2>
- <h3>
- <h4>
- <h5>
- <h6>
- <head>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <isindex>
- <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>
- HTML Tutorial
- HTML Software
- HTML Validator
Tools
Partners
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.
|
| 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>



