XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / applet
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
HTML 4.01 |
applet
<applet> ... </applet>
Embeds a Java applet in the page. The applet element can contain a series of param elements with additional instructions or parameters.
Notes
Deprecated (including all attributes) in HTML 4.01 and XHTML 1.0.
Not available in HTML 5. HTML 5 dropped these elements and all their attributes in favor of object. Nevertheless, applet will remain supported by many browsers for the foreseeable future. Some applets work only with applet.
Start/end tag
Required/required
Attributes
align="left|right|top|middle|bottom"Defines the applet’s alignment and allows text to wrap around it (similarly to the element
img).alt="Text"Contains alternative text if the applet cannot be displayed.
archive="URLs"Contains a space-separated list of URLs of classes to load automatically.
code="Klassenname"Required. Specifies the class name of the code to run.
codebase="URL"Specifies the URL from which to load the applet code.
height="Zahl"Specifies the applet’s initial display height in pixels.
hspace="Zahl"Deprecated. Specifies the empty space in pixels to leave to the left and right of the applet window.
name="Text"Deprecated in XHTML 1.0. Gives the applet a name by which it can be addressed elsewhere on the page.
object="Text"Specifies a resource containing the applet’s serialized form. In an
appletelement, use eithercodeorobject, but not both attributes together.vspace="Zahl"Deprecated. Specifies the space in pixels to leave above and below the applet’s display area.
width="Zahl"Required. Specifies the initial width of the applet’s display area in pixels.
Example
<applet code="Uhr.class" width="300" height="400">
<param name="Verzoegerung" value="250">
<param name="Zeit" value="120">
<param name="SoundsAbspielen" value="YES">
</applet>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de