ABSTRACT

On-line forms are an essential means of collecting information from users, and most websites require the completion of a form for one purpose or another. This chapter introduces the various elements used to build a Web form. Forms are used to collect information from users and vary widely in size and purpose. The <form> element is the element that is used to hold all the various elements that are used to describe the features of a form. Forms can generally be boiled down to containing four categories of controls: those for inputting text, those for making selections, those for uploading files, and those for starting an action. In addition to the point just made about labels and accessibility, there are other guidelines, especially regarding the placement of labels in relation to form controls. For form controls that display text fields and select boxes, the convention is to place labels above them or to the left, depending on various factor.