Home
HTML
HTML Input attributes
Tryit: The step attribute
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>The input step attribute</h1> <p>The step attribute specifies the legal number intervals for an input element.</p> <form action="/action_page.php"> <label for="points">Points:</label> <input type="number" id="points" name="points" step="3"> <input type="submit" value="Submit"> </form> </body> </html>