HTML | applet hspace Attribute

The HTML applet hspace attribute is used to specify the number of whitespaces on the left and right side of an applet element.

Syntax:

<applet hspace="pixels">

Attribute Values:

  • pixels: It specifies the number of whitespaces on right and left of applet in terms of pixels.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML | applet hspace attribute
    </title>
</head>
  
<body>
    <applet code="HelloWorld" alt="GeeksForGeeKs"
            align="right" vspace="hspace = "60""
            width=200 height=60 name="geeks"vs+p> 
    </applet>
      
    <h1>
        HTML applet hspace 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 hspace 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.