The input Example: if step="3", legal numbers could be -3, 0, 3, 6, etc. Tip: This attribute can be used together with the max and min attributes to create a range of legal values. The |
Example:
HTML
<form>
<label for="points">Points:</label>
<input type="number" id="points" name="points" step="3">
</form>
Example:
HTML
<!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>
Reffered: https://www.w3schools.com/html/html_form_attributes.asp
How is to look HTML step Attribute in input | HTML Input Attributes |
Full Code Example of HTML step Attribute in input | HTML Input Attributes |
Read Full: | HTML Input Attributes |
Category: | Web Tutorial |
Sub Category: | HTML Input Attributes |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 37 |