HTML applet Tag

  • HTML <applet> tag describes a embedding a Javascript applet into a web document.

  • HTML <applet> tag remove in HTML5 specification.

Example

<!DOCTYPE html>
<html>
<head>
  <title>HTML applet tag</title>
</head>
<body>
  <applet code="appletex.class" width="550" height="400">
    Java applet that use to create design the Symbol. 
  </applet>
</body>
</html>

<applet> Tag Attributes

<applet> tag required following attributes.

Attributes Value Description
code url Specifies the file name of a JavaScript applet.
object name Specifies name to serialized representation of the applet.
name name Specifies the name of referenced by other objects.
height size_px Specifies the height pixel size of the applet.
width size_px Specifies the width pixel size of the applet.

Global Attributes

<applet> tag also support global attributes.

Attributes Value Description
id unique_name Declared unique id for an element.
class class_name Declared one or more classnames for an element.
style styles CSS inline styles specify an element.
title title Specify extra details of element contain, this will display as a "tooltip" for an elements.

Browser Compatibility

  • Google Chrome
    Not supported
  • Mozilla Firefox
    Yes
  • Microsoft Edge
    Not supported
  • Opera
    Not supported
  • Safari
    Yes