Horje

How to add HTML <input> type number Attribute

Input type: number

Define a field for entering a number (You can also set restrictions on what numbers are accepted).

index.html
Example: HTML
<label for="quantity">Quantity (between 1 and 5):</label>
<input type="number" id="quantity" name="quantity" min="1" max="5"> 

Output should be:

How to add HTML <input> type number Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin