Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu July 17, 2022 . #Attribute . #Html

input min attribute in HTML

The HTML min attribute is used to defines the minimum value of an input element. It specifies the minimum value that is acceptable and also valid in the input element. The min attribute works on <input> elements of the numeric or date type .

Example of min attribute in HTML
 <label>Mobile Number : 
  <input type="number" min="5" required="" placeholder="91#######">
 </label>
 <label>Select Date :
  <input type="date" min="2021-01-01"  required="">
 </label>
Try it Yourself »
To create a range of legal values, use the min attribute together with the max attribute.

Conclusion

In this article, you have learned about HTML min attribute of input element.

save
listen
AI Answer
Write Your Answer
loading
back
View All