applet (HTML element)
| Depr. | Empty | Version |
|---|---|---|
| Yes | No | HTML 3.2 |
| IE5.5+ | FF1+ | SA1.3+ | OP9.2+ |
|---|---|---|---|
| Partial | Partial | Partial | Partial |
Syntax
Description
The applet
element’s purpose is to embed mini Java applications (hence the name
applets meaning ‘little apps’) into the flow of a page. If any param elements are specified
in the applet tag, then they must be placed before all
other content.
This element was defined as far back as HTML2 but was
removed from the HTML recommendations in HTML 4.01, replaced with the much
more flexible and non Java-specific object element in its place.
Example
A super simple
applet element being used to display a stock
ticker.
<applet code="ticker.class"> </applet>
Use this for…
Embedding Java applets into your web page.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 1.0 | 1.5 | 2.0 | 1.3 | 2.0 | 3.0 | 9.2 | 9.5 |
| Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial |
The
applet element is deprecated now and its use should be
avoided. That said, because of its history it is still well supported by
current browsers.
In this Section
align
alignment/position of theappletrelative to surrounding contentalt
alternative text forappletcontentarchive
defines the location of archive filecode
the file name of the Java appletcodebase
defines relative base URL for applets specified in thecodeattributeheight
sets theapplet’s heighthspace
sets amount of space horizontally (either side) for theappletname
name for referencing theappletelement byobject
reference to serialized representation of appletvspace
sets amount of space vertically (top and bottom) for theappletwidth
sets theapplet’s width
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.