Open In App

HTML | applet height Attribute

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:



Example:




<!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:

Article Tags :