html5 input type number code example
Example 1: number input html
<input id="number" type="number" value="42">
Example 2: html5 number integer
<input type="number" step="1" />
<input id="number" type="number" value="42">
<input type="number" step="1" />