applet (HTML element)

Spec
Depr. Empty Version
Yes No HTML 3.2
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2
Partial Partial Partial Partial None

Syntax

<applet archive="uri" code="uri" codebase="uri" height=" { number | percentage } "width=" { number | percentage } ">
</applet>

Description

The applet element’s purpose is to embed mini Java applications (hence the name applets meaning ‘little apps’) into the flow of a page. If any param elements are specified in the applet tag, then they must be placed before all other content.

This element was defined as far back as HTML2 but was removed from the HTML recommendations in HTML 4.01, replaced with the much more flexible and non Java-specific object element in its place.

Example

A super simple applet element being used to display a stock ticker.

<applet code="ticker.class">
</applet>

Use this for…

Embedding Java applets into your web page.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial Partial None

The applet element is deprecated now and its use should be avoided. That said, because of its history it is reasonably well supported by current browsers (with the exception of Google Chrome).

In this Section

User-contributed notes

There are no comments yet.

Related Products