HTML | applet height Attribute

The HTML applet height attribute is used to specify the height of an <applet> element.

Syntax:

<applet height="pixels">

Attribute Values:

  • pixels: It specifies the height of the applet element.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
       
<head>
    <title>
        HTML | applet height attribute
    </title>
</head>
  
<body>
    <applet code="HelloWorld"
        width=200 height=60>
    </applet>
      
    <h2>
        Hello GeeksForGeeks
    </h2>
      
    <p>
        a computer science
        portal for Geeks 
    </p>
</body
  
</html>    

chevron_right


In the above code, the applet file HelloWorld can be used the variable name message to access the value stored in it, which is “HelloWorld”.



Output:

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

  • Firefox
  • Safari

full-stack-img

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.