<applet>


HTML <applet> Tags - HTML5 is not supported


##Instance

An embedded Java applet:

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

Browser support

1000.png

Comments: Some There is still support for <applet> in the browser but it requires additional plug-ins and installation processes to work.


Tag definition and usage instructions

What does applet mean?

HTML5 does not support the <applet> tag. Please use the <object> tag instead.

In HTML 4.01, the <applet> element is deprecated. The

<applet> tag defines the embedded applet.


Differences between HTML 4.01 and HTML5

HTML5 does not support the <applet> tag, and HTML 4.01 has deprecated the <applet> tag.


Required attributes

AttributesValueDescriptioncodeSpecifies the file name of the Java applet. object specifies the name of the resource that contains a series of versions of this applet.
URL
name
Optional attributes

AttributesValueDescriptionalignleft specifies the alignment of the applet relative to surrounding elements. altSpecifies the replacement text for the applet. archive Specifies the location of the archive file. codebaseSpecifies the base URL for the applet specified in the code attribute. heightSpecifies the height of the applet. hspace Defines the horizontal spacing around the applet. name Defines the name of the applet (to be used in scripts). vspace Defines the vertical spacing around the applet. widthSpecifies the width of the applet.

Standard attributes

In HTML 4.01, the <applet> tag supports the following standard attributes:

right
top
bottom
middle
Baseline
text
URL
URL
pixels
pixels
name
pixels
pixels
AttributesValueDescription
classclassnameSpecifies the class name of the element
ididSpecifies the unique id of the element
stylestyle_definitionSpecifies the inline style of the element
titletextSpecifies additional information for the element

For a complete description, visit the standard properties.


Event Attributes

In HTML 4.01, the <applet> tag does not support any event attributes.

For a complete description, visit the event properties.