Java program structure for web page

java

This is fast test applet program please type the code and procedure step by step

import java.applet.*;
import java.awt.*;
public class FastApplet extends Applet
{
Font f = new font (“Arial”, font. Bold,15);
Public void init()
{
Setfont(f);
}
Public void print(Graphics d)
{
d.drawString(“This is the fast test program”, 40,65);
}
}

applet program

applet program

<html>
<title>FastApplet</title>
<body>
<h1>Fast Applet</h1>
<hr>
<Applet code = “FastApplet.class” height=238 width = 477>
</applet>
</body>
</html>

<applet> tag attribute width and height of FasrApplet