HTML <applet> tag
HTML <applet> tag
The <applet>
tag embeds a Java applet into the document.
Warning: The <applet>
tag is deprecated and is no longer recommended.
Note: Use <object> tag instead of <applet>
tag.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<applet code="golf.class" align="left" archive="golf.zip" height="300" width="300">
<param name="difficulty" value="easy">
<p>Sorry, you need Java to play this game.</p>
</applet>
</body>
</html>
Attributes
Attribute | Value | Explanation |
---|---|---|
align |
| It will position the applet relative to the content. |
alt | text | Specifies a descriptive alternate text to be displayed, if browsers do not support java. |
archive | URL | Specifies a path to an archived or compressed version of the applet, which might help reduce download time. |
code | URL | Specifies a path to the applet's class file. |
codebase | URL | Specifies a absolute or relative path of the directory where class file(appplet) is stored. |
datafld | name | Specifies the column name from the data source object that supplies the bound data. |
datasrc | URL | 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 | px | Specifies the height of the applet. |
hspace | px | Specifies the horizontal spacing of the applet. Either side |
mayscript | Javascript | It allows access to an applet by programs in a scripting language embedded in the document. |
name | text | Specifies the name of the applet. |
object | URL | Specifies the URL of a serialized representation of an applet. |
src | URL | Specifies a URL for an associated file for the applet. |
vspace | px | Specifies the vertical spacing of the applet. Either side |
width | px | Specifies the width of the applet. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.