Create an input element with type set to range.

Make sure to type <input type="range">.