WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <applet> Tag. Not Supported in HTML5.


Example

An embedded Java applet:

<applet code="Bubbles.class" width="350" height="350">
Java applet that draws energized bubbles.
</applet>


Definition and Usage

The <applet> tag isn't bolstered in HTML5. Use <embed> or <object> instead.

The <applet> tag characterizes an implanted applet.

Note: The <applet> However, additional plug-ins and installation processes are required to work.


Browser Support

Element
<applet> Not supported Yes Yes Yes Not supported

Differences Between HTML 4.01 and HTML5

The <applet> tag isn't bolstered in HTML5.


Required attributes

attribute value description
code URL Specifies the file name of the Java applet.
object name specifies the resource name of a series of versions containing the applet.

Optional attributes

attribute value description
align left
right
top
bottom
middle
baseline
Specifies the alignment of the applet relative to surrounding elements.
alt text Specifies an alternative text for the applet.
archive URL Specifies the location of the archive file.
codebase URL Specifies the base URL of the applet specified in the code attribute.
height pixels Specifies the height of the applet.
hspace pixels Defines the horizontal interval around the applet.
name name Defines the name of the applet (used in the script).
vspace pixels Defines the vertical spacing around the applet.
width pixels Specifies the width of the applet.