New in HTML5.

<input height=””>

Attribute of
<input> HTML Tag
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.

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for height