This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

min

Summary

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

Applies to [HTMLInputElement](/html/elements/input)
The min attribute works with the following input types: [number](/html/elements/input/type/number), [range](/html/elements/input/type/range), [date](/html/elements/input/type/date), [datetime](/w/index.php?title=html/elements/input/type/datetime&action=edit&redlink=1), [datetime-local](/html/elements/input/type/datetime-local), [month](/html/elements/input/type/month), [time](/html/elements/input/type/time) and [week](/html/elements/input/type/week).

For datetime, datetime-local, month, time, and week the value of the attribute must be a valid string of the type.

For number and range the value of the attribute must be a number: decimal or integer.

See also

Related articles

HTML

Other articles

Attributions