The HTML Elements reference.

"object" - html element

  • This element is used to include objects such as images, audio, videos, Java applets, and Flash animations.
  • Starttag <object> is Required and endtag </object> is Required
  • It is intended to replace the more specific 'img' and 'applet' elements.
  • The element is not fully supported by the various browsers, but much depends on the object that will be incorporated.
  • The WIDTH and HEIGHT attributes define the dimensions of the object.
  • Browsers that support the object - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "object" example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
<!-- some browsers need the The Document Type Declaration -->
<html >
 <head>
  <title>Object element example</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
 </head>
 <body>
  <h3>I attended the New York marathon and got these nice trophies:</h3>
  <p>
  <object data="images/Trophy.png" title="My 1. trophy " border="0"
          type="image/gif">
   A photo of 1 the trophy.
  </object>
  <object data="images/Trophy.gif" title="My 2. trophy" border="0"
          type="image/gif">
   A photo of 2 the trophy.
  </object>
  <object data="images/Trophy.jpg" title="My 3. trophy" border="0"
          type="image/jpeg">
   A photo of 3 the trophy.
  </object>
   </p>
  </body>
</html>


Attributes:
align (deprecated), archive , border (deprecated), class , classid , codebase , codetype , data , declare , dir , height (deprecated), hspace (deprecated), id , lang , name , standby , style , tabindex , title , type , usemap , vspace (deprecated), width (deprecated)

Attribute "align" value(s): depend on which element bottom, middle, top, left or right
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
  • You should use styles (CSS) instead.
Possible attribute, align, values for this element:
Attribute value description
bottom Means that the bottom of the object should be vertically aligned with the current baseline. This is the default value.
middle Means that the center of the object should be vertically aligned with the current baseline.
top Means that the top of the object should be vertically aligned with the top of the current text line.
left Cause the object to float to the current left margin.
right Cause the object to float to the current right margin.



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.