Applets allow Java programs to be run within web browsers. An applet is a Java class that extends Applet and overrides certain methods like init(), start(), stop(), and paint(). These methods control the applet's lifecycle and graphics rendering. Applets are subject to security restrictions like not being able to access the local file system. They can be embedded in HTML pages using special tags and retrieve configuration parameters from <param> tags.