'Custom range slide in HTML

How can I make a custom range slider from the screenshot below? enter image description here The problem is that step should be always 1, on every span (between 0-10 and 50k-100k).



Sources

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

Source: Stack Overflow

Solution Source