HTML | applet align Attribute

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>          

chevron_right


Output:

Supported Browsers: The browser supported by HTML applet align attribute are listed below:

  • Firefox
  • Safari

full-stack-img

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.