HTMLforall

  HTML | PHP | Forum

HTML <object> tag

Syntax

<object> - </object>

Definition and Usage

The OBJECT element is used to include objects such as images, videos, Java applets, and VRML worlds. The OBJECT element is intended to replace the more specific IMG and APPLET elements,  though a lack of browser support  makes the IMG and APPLET elements a better choice for the time being.

Optional Attributes

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

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.

Example

Source Output
<P ALIGN=center>
<OBJECT DATA="test.mov"TYPE="video/quicktime"></OBJECT>
</P>
N/A

Home

Learn HTML
HTML Tutorial

HTML Reference
HTML by function
HTML by Alphabet

HTML events
HTML attributes
HTML color names

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

 

Copyright 2005-8 Sunilcare.  All Rights Reserved.
Comments or suggestions? Contact us.About us