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





Please Login to comment...