number tag in html code example
Example 1: html number
<label for="oddnumber">Odd number (between 1 and 9):</label>
<input type="number" id="oddnumber" name="oddnumber"
min="1" max="9" step="2", value="5">
<!-- max maximum value allowed
min minimum value allowed
step legal number intervals
value default value -->
Example 2: html5 number integer
<input type="number" step="1" />