Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

HTML applet Tag

Print Version
 

The HTML applet tag is used for embedding a Java applet within an HTML document.

Note:The HTML applet tag is deprecated in HTML 4.01 and is not supported in XHTML (strict DTD). Use the HTML object tag instead.

Example
<applet code="wooferDog.class" width="500" height="650">
Java applet of a woofer dog.
</applet>
Attributes:
Attributes specific to this tag:
AttributeDescription
codebaseSpecifies the URI of the applet.
codeSpecifies the name or path of the class file.
nameGives the instance a name so that it can be referenced by other objects.
archiveComma separated list of archives containing class files to be preloaded.
objectSpecifies the resource that contains a serialized representation of the applet's state.
widthWidth to display the applet.
heightHeight to display the applet.
Other Attributes:
AttributeDescription
classDocument wide identifier.
idDocument wide identifier
styleInline style (CSS).
titleSpecifies a title to associate with the element.
altAlternative text. This will display if the applet can't be loaded.
alignVisual alignment (i.e. bottom, middle, top, left, right). Deprecated.
hspaceAmount of white space to be inserted to the left and right of the object. Deprecated.
vspaceAmount of white space to be inserted above and below the object. Deprecated.

Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!