HTML | applet align Attribute
Last Updated :
10 Jan, 2022
The HTML applet align attribute is used to specify the alignment of the <applet> element or the content present inside the applet element.
Note: This attribute is not supported by HTML5.
Syntax:
<applet align="left | right | center | justify";>
Attribute Values:
- left: It sets the content to the left-align.
- right: It sets the content to the right-align.
- center: I sets the content element to the center.
- justify: It sets the content to the justify position.
Example:
<!DOCTYPE html>
<html>
<head>
<title>
HTML | applet align Attribute
</title>
</head>
<body>
<applet code="HelloWorld" alt="GeeksForGeeKs"
align="right" width=200 height=60
name="geeks">
</applet>
<h1>
HTML applet align 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 align attribute are listed below:
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...