Advertisement
Home Open Editor ❯

HTML <input> height Attribute

Example

<input type="image" src="submit.jpg" alt="Submit" width="50" height="50">

Try this code ❯

Meaning

The height attribute is used to size an input element particularly when images are used as in <input type="image">.

CSS properties are preferred.

Always specify both the height and width attributes for images.


Standard Syntax

HTML: <input height="pixels">

XHTML: <input height="pixels"/>


Advertisement

Attribute Values

Value Description Example
pixels The height in pixels. <input height="100">
Home Open Editor ❯
Advertisement