Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The obsolete HTML Applet Element (<applet>
) embeds a Java applet into the document; this element has been deprecated in favor of <object>
.
Use of Java applets on the Web is deprecated; most browsers no longer support use of plug-ins, including the Java plug-in.
align
bottom
, left
, middle
, right
, and top
, whereas Microsoft and Netscape also might support absbottom
, absmiddle
, baseline
, center
, and texttop
.alt
<applet>
element may also be rendered as alternative text.archive
code
codebase
attribute.codebase
datafld
<param>
elements passed to the Java applet.datasrc
datafld
, this attribute is used for data binding under Internet Explorer 4. It indicates the id of the data source object that supplies the data that is bound to the <param>
elements associated with the applet.height
hspace
mayscript
name
object
src
vspace
width
<applet code="game.class" align="left" archive="game.zip" height="250" width="350"> <param name="difficulty" value="easy"> <b>Sorry, you need Java to play this game.</b> </applet>
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<applet>' in that specification. | Living Standard | Removed, leaving only a note that it used to exist |
HTML 5.2 The definition of '<applet>' in that specification. | Recommendation | |
HTML 5.1 The definition of '<applet>' in that specification. | Recommendation | |
HTML5 The definition of '<applet>' in that specification. | Recommendation | Made obsolete |
HTML 4.01 Specification The definition of '<applet>' in that specification. | Recommendation | Deprecated in favor of <object>
|
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | ? — 47 | Yes
|
? — 56 | Yes | ? — 34 | Yes
|
align
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
alt
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
archive
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
code
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
codebase
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
datafld
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
datasrc
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
height
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
hspace
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
mayscript
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
name
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
object
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
src
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
vspace
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
width
|
? — 47 | Yes | ? — 56 | Yes | ? — 34 | Yes |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | ? — 47 | Yes
|
? — 56 | ? — 34 | No | No |
align
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
alt
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
archive
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
code
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
codebase
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
datafld
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
datasrc
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
height
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
hspace
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
mayscript
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
name
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
object
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
src
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
vspace
|
No | ? — 47 | Yes | ? — 56 | ? — 47 | No | No |
width
|
No | ? — 47 | Yes | ? — 56 | ? — 34 | No | No |
The W3C specification does not encourage the use of <applet>
and prefers the use of the <object>
tag. Under the strict definition of HTML 4.01, this element is deprecated and entirely obsolete in HTML5.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/applet