
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <ADDRESS>
| Next Tag: <AREA>
|
<APPLET>
Specifies and configures a Java applet.
Support:
-
Notes:
- The </APPLET> end tag is required.
- If the applet requires input parameters, see the <PARAM> tag.
- This tag now has second-class citizen status in HTML 4.0. The tag-of-choice for applets is the <OBJECT> tag. However, this does not have wide browser support.
- Add text between <APPLET> and </APPLET> to handle browsers that don't support this tag.
- This tag is deprecated. Use <OBJECT> instead.
Attributes:
- ALIGN
= "Text"
The alignment of text that follows the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
-
Possible values: LEFT, RIGHT, TOP, TEXTTOP, MIDDLE, TEXTMIDDLE, BASELINE, BOTTOM, TEXTBOTTOM.
- This attribute is deprecated.
- ALT
= "Text"
Text to display for browsers that don't support Java.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
-
This attribute is useless because any browser that doesn't support Java won't support this tag, and so won't understand the ALT attribute (duh!). To handle non-Java browsers, insert text between <APPLET> and </APPLET>.
- ARCHIVE
= "Text"
A ZIP file that contains classes used by the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
3.0 and later |
Notes:
-
Use a filename or a full URL.
- This attribute is deprecated.
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- CODE
= "Text"
(Required)
The .class file that contains the applet code.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
-
Use a filename or a full URL.
- This attribute is deprecated.
- CODEBASE
= "Text"
The base URL used by the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
-
You don't need this attribute if the CODE attribute contains a full URL.
- This attribute is deprecated.
- HEIGHT
= Positive integer
(Required)
The applet's height, in pixels.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
- HSPACE
= Positive integer
The horizontal space, in pixels, that is added to the left and right sides of the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
4.0 and later |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- MAYSCRIPT
When present, indicates that the applet can access JavaScript on the page.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
Not supported |
3.0 and later |
- NAME
= "Text"
The name of the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
-
The NAME attribute enables other applets on the page to work with this applet.
- This attribute is deprecated.
- OBJECT
= "Text"
A resource containing a serialized representation of an applet's state.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
No, I don't know what this attribute does, either.
- SRC
= "Text"
The URL of the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
Notes:
-
Use the CODE and CODEBASE attributes instead of SRC.
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
4.0 and later |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
- VSPACE
= Positive integer
The vertical space, in pixels, that is added to the top and bottom of the applet.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
- WIDTH
= Positive integer
(Required)
The applet's width, in pixels.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
3.0 and later |
2.0 and later |
Notes:
Example:
<APPLET CODE="JavaTime.class" WIDTH=300 HEIGHT=60>
Yikes! Your browser doesn't support Java!
</APPLET>
How It Looks:
-
| Index
| Previous Tag: <ADDRESS>
| Next Tag: <AREA>
|
|