Skip to content
Related Articles

Related Articles

Improve Article

HTML | applet align Attribute

  • Last Updated : 21 Apr, 2020

The HTML applet align attribute is used to specify the alignment of the <applet> element or the content present inside the applet element.

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:

  • Firefox
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :