# Slider

> A handle you slide along a line. It picks a value, like how loud.

**Field:** Design  
**Category:** User Interface  
**Also known as:** Range Slider, Range Input

## Think of it like

It is like a volume knob made straight. Slide it to turn things up or down.

## Definition

A slider lets people pick a value by dragging a handle along a track. It suits rough choices where the exact number matters less, like volume, brightness or a price range. Hitting an exact value by dragging is hard, so a slider often comes with a number box. Some sliders have two handles to pick a range.

## Example

A hotel site uses a two-handle slider for price. Emma drags it to between $80 and $150.

## Example code

```html
<label for="vol">Volume</label>
<input id="vol" type="range" min="0" max="100">
```

The range type draws a slider that also moves with the arrow keys.

## Why it matters

It makes rough choices quick and shows where a value sits in its range.

## Common mistake

Using a slider for an exact number, like age. Dragging to 37 is fiddly; a box is faster.

## Three principles

- **Drag to pick.** Along a track.
- **For rough values.** Volume, brightness, price.
- **Add a box for exact.** Typing is precise.

## Related terms

- [Number Stepper](https://learn.benibix.com/term/design/number-stepper)
- [Text Input](https://learn.benibix.com/term/design/text-input)
- [Fitts's Law](https://learn.benibix.com/term/design/fitts-law)

## Taught in

- [Select Menus and Pickers](https://learn.benibix.com/learn/design-user-interface/select-menus-and-pickers): UI Components, 6/14

---

Source: https://learn.benibix.com/term/design/slider
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
