54.8k views
5 votes
Identify a syntax used to create a spinner control using an input element. a. b. c. d.

User Lacek
by
6.9k points

1 Answer

5 votes

Answer:

Option A:

<input name="name" id="id" type="number" value="value" step="value" min="value" max="value" />

Step-by-step explanation:

Spinner control is a graphical control element where user can adjust the value by pressing up or down arrow button. An example is given in the attached image.

In HTML, one of the key attributes we must use to create a spinner control is "step". The attribute "step" is required to specify the interval of the step value when user press the up or down arrow button.

If we set the attribute values as follows:

  • type = "number"
  • value = 2
  • min = 0
  • max = 10

The setting above will give a spinner control with a range of legal numbers between 0, 2, 4, 6, 8 and 10.

Identify a syntax used to create a spinner control using an input element. a. b. c-example-1
User Josh Smeaton
by
7.3k points