Open In App

HTML | applet height Attribute

Last Updated : 13 Jan, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report
The HTML applet height attribute is used to specify the height of an <applet> element.

Note: This attribute is not supported by HTML5.

Syntax:
<applet height="pixels">
Attribute Values:
  • pixels: It specifies the height of the applet element.
Example: html
<!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>    
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

Similar Reads