input type number to create form in html code example Example: form with number input html <input id="number" type="number" value="42">