HTML <applet>Tag -HTML5 Does Not Support
Examples
An embedded Java applet:
<applet code="Bubbles.class" width="350" height="350">
Java applet that draws animated bubbles.
</applet>
Browser Support
![]()
Note:Some browsers still support <applet>, but additional plugins and installation processes are required for it to work.
Tag Definition and Usage Instructions
HTML5 does not support the <applet> tag. Please use<object>tag instead.
In HTML 4.01, the <applet> elementis deprecated。
The <applet> tag defines an embedded applet.
Differences between HTML 4.01 and HTML5
HTML5 does not support the <applet> tag. HTML 4.01 has deprecated the <applet> tag.
Required Attributes
| Attribute | Value | Description |
|---|---|---|
| code | URL | Specifies the file name of the Java applet. |
| object | name | Specifies the name of a resource that contains a series of versions of 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 the alternative text for the applet. |
| archive | URL | Specifies the location of the archive file. |
| codebase | URL | Specifies the base URL for the applet specified in the code attribute. |
| height | pixels | Specifies the height of the applet. |
| hspace | pixels | Defines the horizontal spacing around the applet. |
| name | name | Defines the name of the applet (used in scripts). |
| vspace | pixels | Defines the vertical spacing around the applet. |
| width | pixels | Specifies the width of the applet. |
Standard Attributes
In HTML 4.01, the <applet> tag supports the following standard attributes:
| Attribute | Value | Description |
|---|---|---|
| class | classname | Specifies the class name of the element |
| id | id | Specifies the unique id of the element |
| style | style_definition | Specifies the inline style of the element |
| title | text | Specifies additional information about the element |
For a full description, please visitStandard Attributes。
Event Attributes
In HTML 4.01, the <applet> tag does not support any event attributes.
For a full description, please visitEvent Attributes。
Other Extensions