The min and max Attributes
The min and max Attributes
<pre><code>Enter a date before 1980-01-01:
<input type="date" name="bday" max="1979-12-31">
Enter a date after 2000-01-01:
<input type="date" name="bday" min="2000-01-02">
Quantity (between 1 and 5):
<input type="number" name="quantity" min="1" max="5"></code></pre> Specify the minimum and maximum values for an <input> element.
Work with the following input types: number, range, date, datetime-local, month, time and week.
Semantic portal