The type="range" attribute in an <input> element renders a slider control.
HTML Input Type range:
Purpose: The range type is used for input fields that should contain a value from a range of numbers.
Example:
Given the HTML:
<input id="range" name="range" type="range">
Explanation:
This will render as a slider that the user can move to select a value within a range.
References:
MDN Web Docs - <input type="range">
W3Schools - HTML Input Range
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit