applet (HTML element)
| Depr. | Empty | Version |
|---|---|---|
| Yes | No | HTML 3.2 |
| IE5.5+ | FF1+ | Saf1.3+ | Op9.2+ |
|---|---|---|---|
| Partial | Partial | Partial | Partial |
Example
A super simple
applet element being used to display a stock
ticker.
<applet code="ticker.class"> </applet>
- Type
- empty element
- Contains
- block-level elements, inline elements
- Contained by
- block-level
elements, inline elements
(except
pre)
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.
Use this for…
Embedding Java applets into your web page.
Compatibility
| IE | 5.5 | Partial |
|---|---|---|
| 6.0 | Partial | |
| 7.0 | Partial | |
| Firefox | 1.0 | Partial |
| 1.5 | Partial | |
| 2.0 | Partial | |
| Safari | 1.3 | Partial |
| 2.0 | Partial | |
| 3.0 | Partial | |
| Opera | 9.2 | Partial |
| 9.5 | 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 content - alt
alternative text forappletcontent - archive
defines the location of archive file - code
the file name of the Java applet - codebase
defines relative base URL for applets specified in thecodeattribute - height
sets theapplet’s height - hspace
sets amount of space horizontally (either side) for theapplet - name
name for referencing theappletelement by - object
reference to serialized representation of applet - vspace
sets amount of space vertically (top and bottom) for theapplet - width
sets theapplet’s width
Related Reading
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.

