An applet is a small Java program designed to run within a web browser as part of an HTML page. Applets were a key feature of Java in the late 1990s for bringing dynamic content to the web before modern JavaScript frameworks. They execute in a sandboxed JVM on the client side.