Skip to: content, navigation

by Ian Lloyd

applet (HTML element)

Spec
Depr. Empty Version
Yes No HTML 3.2
Browser support full matrix
IE5.5+ FF1+ Saf1.3+ Op9.2+
Partial Partial Partial Partial
<applet archive="uri" code="uri" codebase="uri" height=" { number | percentage } "width=" { number | percentage } ">
</applet>

Example

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

<applet code="ticker.class">
</applet>
Type
empty element
Contains
block-level elements, inline elements
Contained by
block-level elements, inline elements (except pre)

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.

Use this for…

Embedding Java applets into your web page.

Compatibility

IE5.5Partial
6.0Partial
7.0Partial
Firefox1.0Partial
1.5Partial
2.0Partial
Safari1.3Partial
2.0Partial
3.0Partial
Opera9.2Partial
9.5Partial

The applet element is deprecated now and its use should be avoided. That said, because of its history it is still well supported by current browsers.

In this Section

Related Reading

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters