When writing in HTML, the tag is a block element used to embed a Java applet. It is useful when you want to add more functionality to your web pages. The following sections contain information about this tag, including an example of its code, and related attributes and browser compatibility.

Example code

Java applet that draws bouncing text characters.

Required attributes

In an HTML tag, attributes dictate certain aspects of an HTML element. Attributes are made up of a name and value pair. All HTML tags support standard attributes. The following table shows attributes that have to be used with the tag, and a description of each.

The tag is deprecated. Going forward, use theor tags.

  • Example code
  • Required attributes
  • Optional attributes
  • Compatibility
  • Related information

Optional attributes

An optional attribute is one that is used in addition to those listed above, but is not required for the tag to work properly.

Compatibility

*Until it is removed in a future version of HTML

Browser, Code, Compatibility, Container tag, CSS, Java, JavaScript, URL, Web design terms

  • What is the difference between Java and JavaScript?
  • How to disable or uninstall Java.
  • How to write a JavaScript.
  • HTML and web design help and support.