---
obsoleteMessage: |
The Java-specific applet element is
obsolete in the HTML Living Standard.
Use embed or object instead.
obsoleteSince: 20
---
applet elements HTML and XHTML Documents that load Java applets where applet is not deprecated.
Provide a text alternative for an applet by using the alt attribute to label an applet
and providing the text alternative in the body of the applet element. In this technique, both mechanisms
are required due to the varying support of the alt attribute and applet body text by
user agents.
<applet code="tictactoe.class" width="250" height="250" alt="tic-tac-toe game"> tic-tac-toe game </applet>
alt attribute with a text alternative
for the applet