HTML Tags

HTML <applet> Tag

The <applet> tag embedded a Java applet in a page, but it is deprecated and obsolete in HTML5 — use <object> or <embed> instead.


What is the <applet> tag?

The <applet> element was used to embed a Java applet, a small application delivered via a browser plug-in. Java applets and the plug-in architecture they depended on are no longer supported by modern browsers.

⚠️

The <applet> tag is deprecated and obsolete in HTML5. It has been removed from the specification, modern browsers no longer run applets, and it must not be used.

Modern replacements

To embed external content or applications, use the <object> or <embed> elements. For media, prefer the dedicated <audio> and <video> elements, and for interactivity use JavaScript and modern web APIs.

Replace <applet> with <object> or <embed>.
<!-- Old (do not use) -->
<applet code="Game.class" width="300" height="200"></applet>

<!-- Modern replacement using object -->
<object data="viewer.pdf" type="application/pdf" width="300" height="200">
  <p>Your browser cannot display this content.</p>
</object>

There is no reason to use <applet> in any new project.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships