Java applet that draws animated bubbles. ``` --- ## Browser Support **Note:**"> Java applet that draws animated bubbles. ``` --- ## Browser Support **Note:**" />
Easy Tutorial
❮ Att Thead Char Av Met Play ❯

HTML <applet> Tag

Example

An embedded Java applet:

<applet code="Bubbles.class" width="350" height="350">
Java applet that draws animated bubbles.
</applet>

Browser Support

Note: The <applet> tag is still present in some browsers but requires additional plugins and installation processes to function.


Tag Definition and Usage

In HTML 4.01, the <applet> element is deprecated.

The <applet> tag defines an embedded applet.


Differences Between HTML 4.01 and HTML5

HTML5 does not support the <applet> tag, and HTML 4.01 has deprecated the <applet> tag.


Required Attributes

Attribute Value Description
code URL Specifies the filename of the Java applet.
object name Specifies the name of a series of applet versions.

Optional Attributes

Attribute Value Description
align left <br>right <br>top <br>bottom <br>middle <br>baseline Specifies the alignment of the applet relative to surrounding elements.
alt text Specifies alternative text for the applet.
archive URL Specifies the location of the archive file.
codebase URL Specifies the base URL for the applet specified in the code attribute.
height pixels Specifies the height of the applet.
hspace pixels Defines the horizontal spacing around the applet.
name name Defines the name of the applet (used in scripts).
vspace pixels Defines the vertical spacing around the applet.
width pixels Specifies the width of the applet.

Standard Attributes

In HTML 4.01, the <applet> tag supports the following standard attributes:

Attribute Value Description
class classname Specifies the class name for the element.
id id Specifies a unique id for the element.
style style_definition Specifies the inline style for the element.
title text Specifies extra information about the element.

For a complete description, visit Standard Attributes.


Event Attributes

In HTML 4.01, the <applet> tag does not support any event attributes.

For a complete description, visit Event Attributes.

❮ Att Thead Char Av Met Play ❯