input max min number code example
Example 1: html min max example input number
<input type="number" id="quantity" name="quantity" min="1" max="5">
Example 2: number input html
<input id="number" type="number" value="42">
<input type="number" id="quantity" name="quantity" min="1" max="5">
<input id="number" type="number" value="42">