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