Name

applet — HTML 4.01

Synopsis

<applet> . . . </applet>

Embeds a Java applet on the page. The applet element may contain a number of param elements that provide further instructions or parameters.

Notes

Deprecated (with all its attributes) in HTML 4.01 and XHTML 1.0.

Not in HTML5. In HTML5, this element and its attributes have been omitted entirely (in favor of object). The applet element is still supported by browsers and is expected to be for the foreseeable future. Some applets require the use of applet.

Start/End Tags

Required/Required

Attributes

Core

align="left|right|top|middle|bottom"

Aligns the applet and allows text to wrap around it (same as image alignment).

alt="text"

Provides alternate text if the applet cannot be displayed.

archive="URLs"

Provides a space-separated list of URLs with classes to be preloaded.

code="class"

Required. Specifies the class name of the code to be executed.

codebase="URL"

Specifies the URL from which the applet code is retrieved.

height="number"

Specifies the height of the initial applet display area in pixels.

hspace="number"

Deprecated. Specifies the number of pixels of clear space to the left and right of the applet window.

name="text"

Deprecated in XHTML 1.0. Names the applet for reference from elsewhere on the page.

object="text"

Names a resource containing a serialized representation of an applet’s state. Use either code or object in an applet element, but not both.

vspace="number"

Deprecated. Specifies the number of pixels of clear space above and below the applet ...

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.