html input min and max value code example
Example 1: html min max example input number
<input type="number" id="quantity" name="quantity" min="1" max="5">
Example 2: input maxlength
<form action="/action_page.php">
<label for="username">Username:</label>
<input type="text" id="username" name="username" maxlength="10"><br><br>
<input type="submit" value="Submit">
</form>