Last Updated : 13 Jan, 2022
The
HTML applet alt attributeis used to specify the alternate text for an applet element. It is useful when the applet element not displayed. It is used to give alternative information for an applet element.
Note: This attribute is not supported by HTML5.
Syntax:<applet alt="text">Attribute Values:
It contains single value text which specifies the alternative text for an applet element.
Example: html
<!DOCTYPE html>
<html>
<head>
<title>
HTML applet alt attribute
</title>
</head>
<body>
<applet code="HelloWorld" alt="GeeksForGeeKs"
width=200 height=60 name="geeks">
</applet>
<h1>
HTML applet alt attribute
</h1>
<h2>Hello GeeksForGeeks</h2>
<p>
a computer science
portal for Geeks
</p>
</body>
</html>
Output: Supported Browsers:
The browser supported by HTML applet alt attribute are listed below:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4