Java Applets embedding problem

Hi all, i'm pretty new to java applets and been struggling to embed it into a webpage. I made a java applet using eclipse, and ran it using eclipse's applet viewer just fine. However i cannot embed it into my webpage.

I placed the jar file i exported from the project into the same location with this html file, and in the html file, i put the following code