"Stylin' with CSS: A Designer's Guide 2nd Edition"
That code will run once the form is submitted by the user.) method determines how the data is passed to the server; post causes it to be passed invisibly in the HTTP header, and get causes it to be passed in the URL string. FORM CONTROLS Contained within the opening and closing form tags can be any number of form text ?¬? elds, radio buttons, checkboxes, and selects, known collectively as form controls. (Form controls into which you can enter text are commonly known as ?¬? elds.) Each control should have a label tag that associates the label with the control. The label tag is important if screen readers are going to make sense of your form, for reasons you will discover in a moment. Don??™t use a paragraph or a heading tag to label form controls. The ?¬? rst three sections of this form illustrate the three types of text entry elements: text, password, and textarea. THE TEXT INPUT CONTROL FIGURE 6.14 A single-line text ?¬? eld. text is an input element for a single line of text, as shown in Figure 6.14, such as User Name. The basic format of a text ?¬? eld is
size="18" maxlength="36" tabindex="1" /> Forms controls are mostly based on the tag input, and the input??™s type attribute determines its appearance (a text ?¬? eld or radio button, for example).