<input height="">
Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- How To Use Input To Create Form Fields In HTML: Easy Tutorial
- What does
<input height="">
do? - Specifies the height of an image input.
New, but inconsistent with HTML5
The height
attribute was added to the <input>
element in HTML5. It can only be used to specify the height of an image when the <input>
is of the image type
, which allows you to create a submission button with an image file. Given that one of the driving factors in HTML5 was the separation of presentation (style) from content (markup), it is a weird addition to the specification. In most cases, you probably want to avoid this attribute and specify the height of your inputs with CSS.
Browser Support for height
All | All | All | All | All | All |