Java - Explain how to implement an applet into a web page using applet tag

Explain how to implement an applet into a web page using applet tag

To view an applet in the browser, following steps need to be followed:
Compile the applet you have written … the .java file so as to get the .class file.

Then, include the following code in your .html file:
<APPLET CODE="XZY.class" WIDTH=100 HEIGHT=100>
</APPLET>
And then open the file using a java enabled browser.
Java - What are the attributes of Applet tags? Explain the purposes
What are the attributes of Applet tags? - height: Defines height of applet, width: Defines width of applet...
Java - How can we determine the width and height of my applet?
How can we determine the width and height of my applet? - Applet tags have attributes width and height with which we can determine their dimensions...
Java - Explain how to set the background color within the applet area
How to set the background color within the applet area - You can set the background color of an applet in the following manner:..
Post your comment