title: Java: Applet criteria
body: <p>So I'm having a tough time trying to understand the criteria that I need to follow in order for my Java program to be able to be embedded in HTML. Do I just have to extend my main class to the Applet class, or is there more that I have to do? Also, in every Applet example I've seen, it shows the code embedding a .class file, like so:</p>
  
  <pre><code> &lt;Applet Code="MyApplet.class" width=200 Height=100&gt;
   &lt;/Applet&gt;
  </code></pre>
  
  <p>Do I need to have all the .class files stored in a folder seperately, or does it just read the .class file specified from the compiled .jar?? I'm fairly lost here, if someone could clarify it would be much appreciated. Thanks</p>