Embedding an applet into an HTML page is similar to adding an image. You must specify the name of the applet and the size on the screen using the APPLET tag.
<APPLET code="QTime.class" width=320 height=370>
</APPLET>
It is often possible to add optional PARAMeter tags to the APPLET tag in order to change the behavior of the applet. For example, the QTime applet may be embedded within a web page with the following parameter tags:
<applet code="QTime.class" width=320 height=370>
<PARAM NAME="potential" VALUE="20*(step(1+x)-step(x-1))" >
<PARAM NAME="real" VALUE="cos(2*pi*x)*exp(-(x+4)*(x+4))" >
<PARAM NAME="imaginary" VALUE="sin(2*pi*x)*exp(-(x+4)*(x+4))"
>
<PARAM NAME="FPS" VALUE=10>
<PARAM NAME="dt" VALUE=0.02>
<PARAM NAME="numPts" VALUE=512>
<PARAM NAME="minX" VALUE=-10>
<PARAM NAME="maxX" VALUE=10>
<PARAM NAME="showControls" VALUE=true>
<PARAM NAME="helpFile" VALUE="QTimeHelp.html" >
<PARAM NAME="caption" VALUE="QTime" >
</APPLET>
where FPS, frames per second, may need to be adjusted to produce smooth animation on less powerful computers. The ShowControls parameter is designed to reduce the screen size of the Applet. This parameter allows the HTML programmer to hide the buttons displayed on the bottom of the applet.