HTML <input> Tag with the 'min' Attribute

<form name="myForm" action="https://www.PuStudy.Com/resources/html-forms-action.html">
<input type="number" min="400" name="myField" value="300">



The above example demonstrates usage of the <input> element with the min attribute.

The min attribute allows you to restrict the value that the user can input. Specifically, it allows you to specify a minimum value that the user can input.

If specified, the min attribute must have a value that is a valid floating-point number.

The above example uses an input control with type="number" however, the min attribute can be used with other input types, such as range, month, week, time and others.

You can also use max to specify a maximum value.