HTML and CSS Reference
In-Depth Information
CHAPTER SUMMARY
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.
Key Terms
button
check box
Common Gateway Interface
(CGI)
for attribute
form
form control
hidden form control
method attribute
name attribute
password box
privacy policy
radio button
reset button
scrolling text box
select list
server-side scripting
submit button
tabindex attribute
text box
value attribute
<button>
<fieldset>
<form>
<input />
<label>
<legend>
<option>
<select>
<textarea>
accesskey attribute
action attribute
Review Questions
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
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
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
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"/>
384
 
Search WWH ::




Custom Search