Applet Tag in HTML-How to Run a Java Applet Application on Browser, How to Run a Java program on Browser


Applet Tag in HTML-How to Run a Java Applet Application on 
Browser, How to Run a Java program on Browser

Applet Tag is used to run a Java Application on Browser. It is used to deploy a Java Class which is Compiled by Java Compiler and that Compiled class is executed by Applet tag. It has some attributes to run a Java Class.
Attributes in Applet Tag:-

Code:- The code Attribute is used to write a Compiled java class in Applet Tag.
Ex:-
<applet code="calculator.class"></applet>

Height:- The Height Attribute specify the vertical length of the Java Application on Browser.
Ex:- 
<applet code="calculator.class" height="500"></applet>

Width:- The Width Attribute specify the horizontal length of the Java Application on Browser.

Note:- Some browser do not support the Applet tag like google chrome these browser need to install an additional plug in to run a java applet code on browser.  

{ 0 comments... read them below or add one }

Post a Comment