The applet tag in HTML is used to set a Java applet on an HTML web page.
Note: The applet tag deprecated in HTML5. Suggested use of <object> or <embed> element. Following are the attributes−
Attribute | Value | Description |
---|---|---|
align | URL | Defines the text alignment around the applet |
clt | URL | 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 | 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 | test | Additional information to be displayed in tool tip of the mouse |
vspace | pixels | Amount of white space to be inserted above and below the object. |
width | pixels | Width to display the applet. |