HTML 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

DisplayBlock
Start tag/End tagBoth Start tag and End tag
UsageEmbed Applets

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>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *