nerdexam
CIW

1D0-720 · Question #22

In HTML5, which input type is used to create a slider control for selecting a numeric value?

The correct answer is B. <input type="range">. <input type="range"> renders as a slider control, letting users drag a thumb along a track to select a value within a defined min/max range. Option A (type="number") displays a numeric spinner/text field - it accepts numbers but shows no slider. Options C and D (type="slider"…

Advanced HTML5 Features

Question

In HTML5, which input type is used to create a slider control for selecting a numeric value?

Options

  • A<input type="number">
  • B<input type="range">
  • C<input type="slider">
  • D<input type="scroll">

How the community answered

(23 responses)
  • B
    91% (21)
  • C
    4% (1)
  • D
    4% (1)

Explanation

<input type="range"> renders as a slider control, letting users drag a thumb along a track to select a value within a defined min/max range. Option A (type="number") displays a numeric spinner/text field - it accepts numbers but shows no slider. Options C and D (type="slider" and type="scroll") simply don't exist in the HTML5 specification and would fall back to type="text". Memory tip: Think of a "range" as a spectrum between two endpoints - a slider visually represents that range, making range the natural, intuitive name for this control.

Topics

#HTML5 input types#Range input#Form controls#Slider control

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice