विश्व का सबसे बड़ा हिंदी वेब डेवलपर साइट

HTML <applet> Tag. Not Supported in HTML5.


An embedded Java applet:

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

Definition and Usage

The <applet> tag is not supported in HTML5. Use <embed> or <object> instead.

The <applet> tag defines an embedded applet.

Browser Support

<applet> Not supported Yes Yes Yes Not supported

Note: There is still some support for the <applet> tag in some browsers, but it requires additional plug-ins/installations to work.

Differences Between HTML 4.01 and HTML5

The <applet> tag is not supported in HTML5.

Required Attributes

Attribute Value Description
code URL Specifies the file name of a Java applet
object name Specifies a reference to a serialized representation of an applet

Optional Attributes

Attribute Value Description
align left
Specifies the alignment of an applet according to surrounding elements
alt text Specifies an alternate text for an applet
archive URL Specifies the location of an archive file
codebase URL Specifies a relative base URL for applets specified in the code attribute
height pixels Specifies the height of an applet
hspace pixels Defines the horizontal spacing around an applet
name name Defines the name for an applet (to use in scripts)
vspace pixels Defines the vertical spacing around an applet
width pixels Specifies the width of an applet