min value and max value in html number input code example Example: form with number input html <input id="number" type="number" value="42">