<object>

Description

This element embeds object in the page. It provides an effective way to deal with new media. This element gives you control over the data and code in the created object.

The text between the element's opening and closing tags is displayed in the event that the object cannot be loaded.

Example


<html>
<body>
     <object data="http://java2s.com/style/download.png" shapes>
          <a target="main" 
             shape="rect" 
             coords="0, 0, 100, 50" 
             href="http://www.w3c.com"></a> 
          <a target="main" 
             shape="rect" 
             coords="100, 0, 200, 50" 
             href="http:// www.microsoft.com"></a> 
          <a target="main" 
             shape="rect" 
             coords="0, 50, 100, 100" 
             href="http://www.msn.com"></a> 
          <a target="main" 
             shape="rect" 
             coords="100, 50, 200, 100" 
             href="http://www.yahoo.com"></a>
     </object>
     <br>
</body><!--from ww  w.  j  a  v a 2  s . c o m-->
</html>

Click to view the demo

The code above generates the following result.

object




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference