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.

Syntax:

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.

Example:




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

Output:

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!