HTML - <applet>
The HTML Applet Element (<applet>
) identifies the inclusion of a Java applet.
Example
HTML
Copy Code
<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>
Description
The HTML Applet Element (<applet>
) identifies the inclusion of a Java applet.
Usage note: This element has been removed in HTML5 and shouldn't be used anymore. Instead web developers should use the more generic <object>
element.
Browser Compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | Not supported | (Yes) | (Yes) | Not supported | (Yes) |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mini | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
Notes
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.
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/html/element/applet