Name
<applet> — NN 2, 3, 4, 6 MSIE 3, 4, 5, 5.5, 6 HTML 4.01 Opera5
Synopsis
<applet>...</applet>
Deprecated. This tag (first introduced in
Netscape Navigator 2.0) is used to place a Java applet on the web
page. <applet> and all its attributes have
been deprecated in favor of the <object>
element, but it is still widely used. Some applets require the use of
the <applet> tag. Furthermore, Navigator 4
and earlier and Internet Explorer 4 do not support Java applets via
object tags.
Attributes
-
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 Holds
numberpixels space clear to the left and right of the applet window.
-
name=text Names the applet for reference from elsewhere on the page.
-
vspace=number Holds
numberpixels space clear above and below the applet window.
-
width=number Width of the initial applet display area in pixels.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access