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

Core

  • 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 applet element, use either code or object, 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>

 

> back to the alphabetical list of elements

   

 

 

 

back to top