Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | applet hspace Attribute

  • Last Updated : 21 Apr, 2020

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


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

<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

Start Your Coding Journey Now!