主頁
HTML
HTML Input 屬性
Tryit:step 屬性
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 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>