Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML The tag - Not supported in HTML5

Example

An embedded Java applet:

<

applet

code

=

"

Bubbles.class

"

width

=

"

350

"

height

=

"

350

"

Java applet that draws animated bubbles.

applet


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

**Note:** Some browsers still have support for but it requires an additional plug-in and installation process to work.


Tag Definition and Usage Notes

HTML5 does not support tag. Please use the tag instead.

In HTML 4.01, The element is deprecated.

The tag defines an embedded applet.


Differences between HTML 4.01 and HTML5

HTML5 does not support The tag, deprecated in HTML 4.01 tag.


Required Attributes

property Value Description
code URL Specifies the file name of the Java applet.
object name Specifies the name of the resource containing a series of versions of the applet.

Optional Attributes

property Value Description
align left
 right       

 top       

 bottom       

 middle       

 baseline | Specifies applet 相对于周围元素的对齐方式。 |

| alt | text | Specifies the alternative text for the applet. | | archive | URL | Specifies the location of the archive file. | | codebase | URL | Specifies the base URL of the applet specified in the code attribute. | | height | pixels | Specifies the height of the applet. | | hspace | pixels | Defines the horizontal spacing around the applet. | | name | name | Defines the name of the applet (used in scripts). | | vspace | pixels | Defines the vertical spacing around the applet. | | width | pixels | Specifies the width of the applet. |


Standard Attributes

In HTML 4.01, The tag supports the following standard attributes:

property Value Description
class classname Specifies the class name of an element
id id Specifies the unique id of an element
style style_definition Specifies the inline style of an element
title text Specifies extra information about an element

For a complete description, please visitStandard Attributes.


Event attribute

In HTML 4.01, The tag does not support any event attributes.

For a complete description, please visitEvent attribute.