In this section, we will learn what the height attribute is and how to use it.
What is height Attribute in HTML <input> Tag?
HTML <input> of type “image” is used to bring an external image to be used as a submit button. This image, by default, will be displayed by its standard height. But this height might be out of the scale we need in our document.
For this reason, we can use the height attribute to change the height to our specific need.
The value we set for this attribute is any number with relative or absolute units supported in HTML.
HTML height Attribute in <input> Tag Syntax:
<input type = “image” height = “value”>
Example: using height attribute in HTML <input> tag
See the Pen using height attribute in HTML <input> tag by Omid Dehghan (@odehghan) on CodePen.