- Attribute of
- What does
- Specifies the height of an image input.
New, but inconsistent with HTML5
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