Skip to content
Related Articles

Related Articles

HTML | applet height Attribute
  • Last Updated : 22 Apr, 2020

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:




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

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :