HyperText Markup Language/Tag List/applet

From Wikibooks, open books for an open world
Jump to: navigation, search

Use[edit]

This is a depreciated tag. Use <object/> instead. It was used for applying Java Applets to the page. It was also used in conjunction with JavaScript.

Example[edit]

<applet codebase="file:D:/WebsiteData/Applets/timers/" code="clock.class" width="300" height="200">
  <param name="format" value="twelve" />
</applet>

Required attributes[edit]

code[edit]

For specifying the URL of the applet code.

Optional attributes[edit]

align[edit]

How the applet is to be aligned with the text and images.

alt[edit]

Text that will be displayed if the browser does not support the applet tag.

archive[edit]

The name of the .zip file containing the file.

codebase[edit]

The class file subdirectory.

height[edit]

For specifying the height of the applet.

hspace[edit]

The horizontal space around the applet in pixels.

mayscript[edit]

Allows the applet to access a JavaScript or vbscript.

name[edit]

The name of the applet that will be accessed via a DOM.

vspace[edit]

The amount of vertical space around the applet in pixels.

width[edit]

For specifying the width of the applet.

Standard attributes[edit]

More info[edit]

A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).