Skip to content
Related Articles

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.

Syntax:

<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
Related Articles

Start Your Coding Journey Now!