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> element is deprecated in HTML 4.01.
The <applet> tag defines an embedded applet.
Tip: To include applets, use the <object> tag instead!
NONE
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute | Value | Description | DTD |
|---|---|---|---|
| code | URL | Specifies the file name of a Java applet | TF |
| object | name | Specifies a reference to a serialized representation of an applet | TF |
| Attribute | Value | Description | DTD |
|---|---|---|---|
| align | left right top bottom middle baseline |
Specifies the alignment of an applet according to surrounding elements | TF |
| alt | text | Specifies an alternate text for an applet | TF |
| archive | URL | Specifies the location of an archive file | TF |
| codebase | URL | Specifies a relative base URL for applets specified in the code attribute | TF |
| height | pixels | Specifies the height of an applet | TF |
| hspace | pixels | Defines the horizontal spacing around an applet | TF |
| name | name | Defines the name for an applet (to use in scripts) | TF |
| vspace | pixels | Defines the vertical spacing around an applet | TF |
| width | pixels | Specifies the width of an applet | TF |
The <applet> tag supports the following standard attributes:
| Attribute | Value | Description | DTD |
|---|---|---|---|
| class | classname | Specifies a classname for an element | TF |
| id | id | Specifies a unique id for an element | TF |
| style | style_definition | Specifies an inline style for an element | TF |
| title | text | Specifies extra information about an element | TF |
More information about Standard Attributes.
The <applet> tag does not support any event attributes.
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 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).
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|