Home HTML HTML applet Tag with Example

HTML applet Tag with Example


HTML <applet> tag represents embedded applet objects inside HTML documents.

Note: HTML <applet> tag is not supported in HTML5. It is also outdated in HTML 4.01. Currently web browser supports applet using additional plug-ins but there is no guarantee for future support.

Sample Code

<applet code="DrawCircle.class" width="300" height="300">
Java applet that draws circle using DrawCircle.class file
Tip: You can see the complete List of HTML Elements here.

Tag Specific Attributes Support

Following are few applet attributes that are supported by <applet> tag.

Attribute Value Description
align absbottom
Represents an alignment of an applet object
alt text Represents an alternate text for an applet object when it is unavailable
code url Represents a file name for a Java applet
height pixels Represents height for an applet object
name name Represents the name for an applet object
object name Represents serialized representation of the applet object
width pixels Represents width for an applet object

Standard Attributes Support

HTML <applet> tag supports mostly all HTML Attributes. Following are some most common attributes that are used by <applet> tag. You can get more details about available HTML Attributes here.

Attribute Value Description
class user_defined Represents a style for an element which is used in CSS style sheet
id user_defined Represents unique id for an element
lang lang_code Represents the language of the element for it’s content
style css_properties Represents an inline style for an element for e.g style=”color:red;text-decoration:underline;”
title user_defined Represents a tooltip information for an elements like img, a, abbr etc

Event Attributes Support

HTML <applet> tag does not support any HTML Event Attributes in HTML 4.01 due to it is outdated. You can get more details about available HTML Event Attributes here.

Previous articleHTML address Tag with Example
Next articleHTML area Tag with Example
Hi there, I am Mayank, the man behind Technical Mack. I started AspnetO with a motive to educate people on various programming languages ranging from beginners to expert level. Through this blog, I aim to provide more insightful content.


Please enter your comment!
Please enter your name here

17 + nine =