The HTML Attribute reference.

"classid" - html Attribute

  • May be used to specify the location of an object's implementation via a URI.
  • It may be used together with, or as an alternative to the data attribute, depending on the type of object involved

Value(s): uri

Attribute "classid" 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>
   <p>
  <!--if not IE (Firefox and other browser will use outer object -->
  <object classid="java:Clock.class"
          type="application/x-java-applet"
          archive="Clock.jar"
          height="300" width="550" >
   <!-- Some browser needs the following param -->
   <param name="code" value="Clock" />
   <param name="archive" value="Clock.jar" />
   <!-- end if-->
   <!-- MSIE (Microsoft pre. v.8 of Internet Explorer)
will use inner object -->
   <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
 codebase="http://java.sun.com/update/
1.6.0/jinstall-1_6_0-windows-i586.cab"
 height="300" width="550" >
    <param name="code" value="Clock" />
    <param name="archive" value="Clock.jar" />
    <strong>
     This browser does not have a Java Plug-in.
     <br />
<a href="http://java.sun.com/products/plugin/downloads/index.html">
      Get the latest Java Plug-in here.
     </a>
    </strong>
   </object>
   <!--end if - close inner object -->
  </object>
  <!-- end if -->
  </p>
 </body>
</html>
Used in the element(s):
Elements Description
object This element is used to include objects such as images, audio, videos, Java applets, and Flash animations.

© 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.