C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML <applet> tag (Not supported in HTML5)HTML <applet> tag was used to embed the Java applet in an HTML document. This element has been deprecated in HTML 4.0 and instead of it we can use <object> and newly added element <embed>. The use of Java applet is also deprecated, and most browsers do not support the use of plugins. Note: The <applet> tag is deprecated in HTML4.0 and not supported in HTML5. So you can use <object> tag or <embed> tag instead of <applet>.Syntax<applet code="URL" height="200" width="100">.............</applet> Following are some specifications about <applet> tag
Example<!DOCTYPE html> <html> <head> <title>Applet Tag</title> </head> <body> <p>Example of Applet Tag</p> <applet code="Shapes.class" align="right" height="200" width="300"> <b>Sorry! you need Java to see this</b> </applet> </body> </html> AttributesSpecific Attributes
Global AttributesThe <applet> tag supports all Global Attributes in HTML Event AttributesThe <applet> tag supports all Event Attributes in HTML Supporting Browsers
Next TopicHTML area Tag
|