HTML applet Tag


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 <object> instead.


<applet code="appletfile.class" width="400" height="600">
Java applet




align left
Deprecated – Defines the text alignment around the applet
alt text Alternate text to be displayed in case browser does not support applet
archive URL Applet path when it is stored in a Java Archive ie. jar file
code URL A URL that points to the class of the applet
codebase URL Indicates the base URL of the applet if the code attribute is relative
height pixels Height to display the applet
hspace pixels Deprecated – Defines the left and right spacing around the applet
name name Defines a unique name for the applet
object name Specifies the resource that contains a serialized representation of the applet's state.
title text Additional information to be displayed in tool tip of the mouse
vspace pixels Deprecated – Amount of white space to be inserted above and below the object.
width pixels Width to display the applet.

Standard Attributes:



accesskey Access keys (or shortcut keys)
class Document wide identifier
dir Specifies the direction of the text
id Document wide identifier
tabindex Helps determine the tabbing order when the user 'tabs' through the elements on the page.
title Specifies a title to associate with the element.
style Helps to include inline casecadubf style sheet.
lang Sets the language code.

Event Attributes:



onclick Script runs when a mouse click
ondblclick Script runs when a mouse double-click
onmousedown Script runs when mouse button is pressed
onmouseup Script runs when mouse button is released
onmouseover Script runs when mouse pointer moves over an element
onmousemove Script runs when mouse pointer moves
onmouseout Script runs when mouse pointer moves out of an element
onkeypress Script runs when key is pressed and released
onkeydown Script runs when key is pressed
onkeyup Script runs when key is released
Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Designed for