html input min value should be 1 code example
Example 1: min length input html
<form action="/action_page.php">
<label for="password">Password:</label>
<input type="password" id="password" name="password" minlength="8"><br><br>
<input type="submit" value="Submit">
</form>
Example 2: min number input html
<form action="/action_page.php">
<label for="myNumber">My Number:</label>
<input type="number" name="myNumber" id="myNumber" min="5" max="15">
<br><br>
<input type="submit" value="Submit">
</form>