An embedded Java applet:
![]()
Note: There is still some support for the <applet> tag in some browsers, but it requires additional plug-ins/installations to work.
The <applet> tag is not supported in HTML5. Use the <object> tag instead.
The <applet> element is deprecated in HTML 4.01.
The <applet> tag defines an embedded applet.
The <applet> tag is not supported in HTML5, and is deprecated in HTML 4.01.
| 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 |
| Attribute | Value | Description |
|---|---|---|
| align | left right top bottom middle baseline |
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 |
The <applet> tag supports the following standard attributes in HTML 4.01:
| Attribute | Value | Description |
|---|---|---|
| class | classname | Specifies a classname for an element |
| id | id | Specifies a unique id for an element |
| style | style_definition | Specifies an inline style for an element |
| title | text | Specifies extra information about an element |
More information about Standard Attributes.
The <applet> tag does not support any event attributes in HTML 4.01.
More information about Event Attributes.
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.