One of the new elements added with html5 is the number control (<input type="number" ) which
most web designers call the "spinbox" control because it is rendered as a box tiny up/down arrows.
You can click on one of the arrows to increase or decrease the number displayed in the box. If you
prefer, you can type directly into the field. The basic html code for a spinbox is shown below.
Shown below is some practical code to access the contents of the spinbox control. The additional
attributes are id which allows the JavaScript getElementById method to access the
element, and the onchange event to call the JavaScript function.