You can also put the applet tag in a comment block in your java file. That way you dont have to worry about the html file.
It should be before any import statements
/*
<applet code="myApplet" ...>
</applet>
*/
import....
/rest of the code...