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.
Java applet that draws circle using DrawCircle.class file
Tag Specific Attributes Support
Following are few applet attributes that are supported by <applet> tag.
|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.
|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.