Easy Tutorial
❮ Ref Standardattributes Canvas Drawimage ❯

HTML <input> min Attribute

HTML <input> Tag

Example

Using the min and max attributes:


Browser Support

Internet Explorer 10, Opera, Chrome, and Safari support the min attribute.

Note: Firefox or Internet Explorer 9 and earlier versions do not support the min attribute of the <input> tag.

Note: Due to Internet Explorer 10 not supporting these input types, the min attribute will not apply to date and time in IE 10.


Definition and Usage

The min attribute specifies the minimum value for an <input> element.

Tip: The min attribute works with the max attribute to create a range of legal values.

Note: The max and min attributes are applicable to the following input types: number, range, date, datetime, datetime-local, month, time, and week.


Differences Between HTML 4.01 and HTML5

The min attribute is new in HTML5.


Syntax

Attribute Values

Value Description
number Numeric value. Specifies the minimum value allowed for the input field.
date Date. Specifies the minimum value allowed for the input field.

❮ Ref Standardattributes Canvas Drawimage ❯