-
Book Overview & Buying
-
Table Of Contents
The JavaScript Workshop
By :
Form tags are pretty useless without data to send. This data is typically provided using the various form controls or widgets that are available in the HTML specification. Where possible, and where the control has no child nodes, a form control typically utilizes the input node tag type. Other controls include select, textarea, button, and datalist. We will look at each of these control types throughout the rest of this chapter.
The majority of the controls that are available to HTML forms are provided using the input tag. The input tag requires a type parameter, which displays a relative control within the HTML page:
<input type="text" />
The following are the types that are available in modern browsers when using the input control.
The button control appears very much like the submit and reset form buttons. However, unlike submit and reset, the button control has no default action:
<input...