html form type number code example
Example 1: form with 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" />