input type number step html code example Example: number step input html <input id="myNumber" name="myNumber" type="number" step="2" min="1.2">