384
button check box Common Gateway Interface (CGI) forattribute form form control hidden form control methodattribute nameattribute password box
privacy policy radio button reset button scrolling text box select list server-side scripting submit button tabindexattribute text box valueattribute
Multiple Choice
1.Which of the following form controls would be appropriate for an area that your visitors can use to type in comments about your Web site? a. text box b. select list c. radio button d. scrolling text box 2.Which attribute of the <form>tag is used to specify the name and location of the script that will process the form field values? a.action b.process c.method d.id
3.Forms contain various types of ____________, such as text boxes and buttons, that accept information from a Web page visitor. a. hidden elements b. labels c. form controls d. legends 4.Choose the XHTML tag that would configure a text box with the name "city"and a width of 40 characters. a.<input type="text" id="city" width="40" /> b.<input type="text" name="city" size="40" /> c.<input type="text" name="city" space="40" /> d.<input type="text" width="40"/>
This chapter introduced the use of forms on Web pages. You learned how to configure form controls and provide for accessibility. You also learned how to configure a form to access server-side processing.
Visit the textbook Web site at http://www.webdevfoundations.net for examples, the links listed in this chap- ter, and updated information.