applet (HTML element)
| Depr. | Empty | Version |
|---|---|---|
| Yes | No | HTML 3.2 |
| IE5.5+ | FF1+ | SA1.3+ | OP9.2+ | CH2 |
|---|---|---|---|---|
| Partial | Partial | Partial | Partial | None |
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 | Chrome | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 8.0 | 1.0 | 1.5 | 2.0 | 3.0 | 3.5 | 1.3 | 2.0 | 3.1 | 4.0 | 9.2 | 9.5 | 10.0 | 2.0 |
| Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | None |
The
applet element is deprecated now and its use should be
avoided. That said, because of its history it is reasonably well supported
by current browsers (with the exception of Google Chrome).
In this Section
- align
alignment/position of the applet relative to surrounding content - alt
alternative text for applet content - archive
defines the location of archive file - code
the file name of the Java applet - codebase
defines relative base URL for applets specified in the code attribute - height
sets the applet’s height - hspace
sets amount of space horizontally (either side) for the applet - name
name for referencing the applet element by - object
reference to serialized representation of applet - vspace
sets amount of space vertically (top and bottom) for the applet - width
sets the applet’s width
User-contributed notes
There are no comments yet.