HTML 4 applet Tag
Obsolete in HTML5
This tag is obsolete in HTML5, so it's best to avoid using it.
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
Attributes
Attributes specific to this tag: | |
---|---|
Attribute | Description |
codebase | Specifies the URI of the applet. |
code | Specifies the name or path of the class file. |
name | Gives the instance a name so that it can be referenced by other objects. |
archive | Comma separated list of archives containing class files to be preloaded. |
object | Specifies the resource that contains a serialized representation of the applet's state. |
width | Width to display the applet. |
height | Height to display the applet. |
Other Attributes: | |
Attribute | Description |
class | Document wide identifier. |
id | Document wide identifier |
style | Inline style (CSS). |
title | Specifies a title to associate with the element. |
alt | Alternative text. This will display if the applet can't be loaded. |
align | Visual alignment (i.e. bottom, middle, top, left, right). Deprecated. |
hspace | Amount of white space to be inserted to the left and right of the object. Deprecated. |
vspace | Amount of white space to be inserted above and below the object. Deprecated. |
HTML5 Tags
The information on this page is based on HTML version 4.01. Most modern browsers now support HTML5, which is the next version of HTML after HTML 4.01.
Also see this list of HTML 5 tags for the latest version of HTML.