HTML Form tags, Form, input (text box, password, button, submit, textarea) and form attributes
2. HTML Form Tag
2.3. Number
Number is used to accept numeric values from the user. Notice in the code below that there are additional attributes used for this type of input. The attributes min and max are used to set a limit for the numbers to be entered by the user.
Notice also the up and down arrow at the end of the box. You can click on these to increase or decrease the number. When there is no value, the starting number is one. If you do not see any number in your input box, do not worry. This is dependent on the browser. Safari is one browser that does not support these arrows.
<form>
<label
for="age">Enter your age: </label>
<input type="number" id="age" name="age" min="1" max="100">
<input type="number" id="age" name="age" min="1" max="100">
</form>
Output:
