HTML | <input> height Attribute
The HTML <input> height Attribute is used to specify the height of the element. This Attribute is only used for input type=”image”.
Syntax:
<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;" > w3wiki </ h1 > < h2 >HTML Input image Height Attribute</ h2 > < input id = "myImage" type = "image" src = "https://media.w3wiki.net/wp-content/uploads/gfg-40.png" 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
Contact Us