Horje

How to add An HTML form with an input field with a specified legal number intervals - HTML step Attribute

The input step attribute.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The input step attribute</h1>

<form action="/action_page.php">
  <label for="points">Points:</label>
  <input type="number" id="points" name="points" step="3">
  <input type="submit">
</form>

</body>
</html>

Output should be:

How to add An HTML form with an input field with a specified legal number intervals - HTML step Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin