An applet is a Java program that runs within a web browser. It extends the Applet class and does not define a main method. Applets are embedded in HTML pages and download to the user's machine when the page loads. The applet lifecycle includes initialization, starting, painting, stopping, and destruction. Parameters can be passed to applets from the HTML and retrieved using getParameter(). JApplet allows using Swing components in applets.