Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | applet hspace Attribute

Improve Article
Save Article
  • Last Updated : 13 Jan, 2022
Improve Article
Save Article

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

Note: This attribute is not supported by HTML5.


<applet hspace="pixels">

Attribute Values:

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


<!DOCTYPE html>
        HTML | applet hspace attribute
    <applet code="HelloWorld" alt="GeeksForGeeKs"
            align="right" vspace="hspace = "60""
            width=200 height=60 name="geeks"vs+p> 
        HTML applet hspace attribute
    <h2>Hello GeeksForGeeks</h2>
        a computer science
        portal for Geeks 


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

  • Firefox
  • Safari
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!