Open In App

HTML | <applet> vspace Attribute

Last Updated : 27 Apr, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

The applet vspace attribute is used to specify the number of whitespaces on the bottom and top side of an applet element.

Syntax:

<applet vspace="pixels">

Attribute Values:

  • pixels: It specifies the number of whitespaces on top and bottom of applet element in terms of pixels.

Below example illustrates the HTML applet vspace attribute.

  • Example:




    <!DOCTYPE html>
    <html>
    <head>
        <title>
            HTML | applet vspace attribute
        </title>
    </head>
      
    <body>
        <applet code="HelloWorld" 
                alt="GeeksforGeeKs" 
                vspace=60  
                width=200 height="60" 
                name="geeks">
      
        <h1>HTML applet vspace attribute</h1>
      
        <h2>Hello GeeksforGeeks</h2>
      
        <p>
            A computer science portal for Geeks
        </p>
        </applet>
    </body>
      
    </html>     

    
    

  • Output:

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

  • Firefox
  • Safari

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads