HyperText Markup Language/Tag List/applet

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

Use[edit | edit source]

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 | edit source]

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

Required attributes[edit | edit source]

code[edit | edit source]

For specifying the URL of the applet code.

Optional attributes[edit | edit source]

align[edit | edit source]

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

alt[edit | edit source]

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

archive[edit | edit source]

The name of the .zip file containing the file.

codebase[edit | edit source]

The class file subdirectory.

height[edit | edit source]

For specifying the height of the applet.

hspace[edit | edit source]

The horizontal space around the applet in pixels.

mayscript[edit | edit source]

Allows the applet to access a JavaScript or vbscript.

name[edit | edit source]

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

vspace[edit | edit source]

The amount of vertical space around the applet in pixels.

width[edit | edit source]

For specifying the width of the applet.

Standard attributes[edit | edit source]

More info[edit | edit source]

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