Name

applet — <applet> . . . </applet>

Deprecated. This element (first introduced in Netscape Navigator 2.0) is used to place a Java applet on the web page. The applet element has been deprecated in favor of the object element, but it is still supported and commonly used. Some applets require the use of applet . Furthermore, Navigator 4 and earlier and Internet Explorer 4 do not support Java applets via the object element. The applet element may contain a number of param elements that provide further instructions and parameters.

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"

URL from which the applet code is retrieved.

height="number"

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"

This attribute 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 window.

width=" ...

Get HTML and XHTML Pocket Reference, 3rd 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.