HelloWeb Java Applet Program

Object tag version of hello world applet

Minimal HTML 4.01 code needed for Applets with <OBJECT> tag

<HTML>
 <HEAD>
  <TITLE> Simple Applet by Wayne Pollock </TITLE>
 </HEAD>
 <BODY>

 <!-- Simple OBJECT tag, works with modern mozilla and other browsers: -->
 <OBJECT CLASSID="java:HelloWeb.class" HEIGHT="200" WIDTH="300">
  <!-- More complex OBJECT tag, works with some older browsers,
      and includes support to download the plug-in if missing/old: -->
  <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
   WIDTH="300" HEIGHT="200"
   CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
   STANDBY="Loading Applet...">
    <PARAM NAME="code" VALUE="HelloWeb.class">
  </OBJECT>
 </OBJECT>

 </BODY>
</HTML>

Download minimal HTML 4.01 file (using OBJECT tag)

View Java applet source.  

Download HelloWeb.class applet .

Visit the World-Wide Web Consortium (w3c.org) for details on other features of the HTML 4.01 <OBJECT> tag.