Thursday, March 12, 2009

HTML applet Tag

The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.

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

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

Example

Java applet of a woofer dog.

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 HTML 5 version of HTML tags

No comments:

Post a Comment