Posts in current category

HTML5 <applet> tag

May 03, 2021 13:15 HTML5

Table of contents

Definitions and usages

The label is used to define embedded applets, but its use is no longer supported in HTML5!

An embedded Java applet:

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

Browser support

HTML5 <applet> tag

Some browsers still have some support for the label, but additional plug-ins and installation procedures are required to work.

The difference between HTML 4.01 and HTML 5

Applet elements are not supported in HTML 4.01.

Applet elements are not supported in HTML 5.

The required property

Property Value Describe
code Url The file name of Java applet is specified.
object name Defines the resource name that contains a series of versions of the applet.

Optional properties

Property Value Describe
  • left
  • right
  • top
  • bottom
  • middle
  • baseline
  • texttop
  • absmiddle
  • absbottom
Defines the alignment of applets relative to surrounding elements.
Alt text Provide for a replacement text for applet.
archive Url Specify the location of the archives.
codebase Url Specifies the baseline URL of the applet specified in the code property.
height pixels Define the height of applet
hspace pixels Defines the horizontal interval around applet.
name unique_name Specify the name of the applet (used in the script).
vspace pixels Defines the vertical interval around applet.
width pixels Define the width of the applet

The standard property

id, class, title, style, dir, lang, xml:lang

The event property

onclick, ondblclick, onmousedown, onmouseup, onmouseover, 
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup 

Tips and comments:

Tip: A pplet elements are not supported in HTML 5. Please use the .lt;object> instead.
Tip: You can get more information about the hashtags in the "HTML and applets" section of this site!