Horje

How is to look HTML min and max Attributes

Set a max date, a min date, and a range of legal values:
index.html
Example: HTML
 <form>
  <label for="datemax">Enter a date before 1980-01-01:</label>
  <input type="date" id="datemax" name="datemax" max="1979-12-31"><br><br>

  <label for="datemin">Enter a date after 2000-01-01:</label>
  <input type="date" id="datemin" name="datemin" min="2000-01-02"><br><br>

  <label for="quantity">Quantity (between 1 and 5):</label>
  <input type="number" id="quantity" name="quantity" min="1" max="5">
</form> 

Output should be:

How is to look HTML min and max Attributes




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Input Attributes
Uploaded by:
Admin