'Range selector vs. number input

Consider a form where interest rate has to be inputted (A range from 10% to 50%). What is the most appropriate HTML element to use? If I use a range selector, would it suffice?


enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source