Skip to content
Related Articles

Related Articles

Improve Article

HTML | <input> height Attribute

  • Last Updated : 30 May, 2019

The HTML <input> height Attribute is used to specify the height of the element. This Attribute is only used for input type=”image”.

Syntax:

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<input height="pixels"> 

Attribute Values: It contains the value i.e pixels which specify the height of the input Element.

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML Input Image height Attribute
    </title>
</head>
  
<body style="text-align:center;">
  
    <h1 style="color:green;"
            GeeksForGeeks 
        </h1>
  
    <h2>HTML Input image Height  Attribute</h2>
    <input id="myImage" 
           type="image" 
           src=
           alt="Submit"
           width="70" 
           height="96" />
  
</body>
  
</html>

Output:

Supported Browsers: The browser supported by HTML <input> height Attribute are listed below:

  • Google Chrome
  • Internet Explorer 10.0 +
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :