CH 9
12. Select the tag used to visually group a number of form controls. a. <group> b. <fieldset> c . <form> d. none of the above
<form>
15. Select the form control from the choices below that may be used to submit a form a. <input type="submit" > b. <submit></submit> c. <input type="button" value="submit" > d. <select option="submit" >
<input type="submit" >
5. Select the HTML tag below that configures a textbox with the name "email" and a width of 40 characters. a. <input type="text" id="email" width="40" > b. <input type="text" name="email" size="40" > c. <input type="text" name="email" space="40" > d. <input type="text" width="40" >
<input type="text" name="email" size="40" >
20. The purpose of the __________ is to configure a label for a <fieldset>. a. <label> b. <p> c. <form> d. <legend >
<legend >
9. Choose the HTML tag below that would configure a scrolling text box with the name "feedback", 3 rows, and 60 characters. a. <textarea name="feedback" width="60" rows="3"></textarea> b. <input type="textarea" name="feedback" size="60" rows="3" > c. <textarea name="feedback" rows="3" cols="60"></textarea> d. none of the above
<textarea name="feedback" rows="3" cols="60"></textarea>
18. When configuring a group of radio button form controls, the value of the ______ attribute on each radio button must be the same a. name b. id c. value d. none of the above
name
21. Select the value of the type attribute that configures an HTML5 spinner control. a. spinner b. range c. number d. input
number
14. Select the type of form control that "disguises" the characters that are typed. a. text b. password c. encrypt d. textbox
password
22. Select the value of the type attribute that configures an HTML5 slider control. a. spinner b. range c. number d. input
range
6. Select the form control below that would be appropriate to accept comments about your web site. a. select list b. text box c. scrolling text box d. None of the above
scrolling text box
4. Select the form control below that does not use the <input> tag. a. text box b. select list c. checkbox d. radio button
select list
8. An order form contains an area for web visitors to select their state or province. You need to limit the amount of space on the form that is used for this feature. Select the form control that is best to use for this purpose. a . check box b. radio button c. text box d. select list
select list
13. Select the attribute used to limit the width of a text box as displayed in a browser. a. size b. maxsize c. limit d. columns
size
Multiple Choice. Choose the best answer. 1. Select the statement below that is true about forms. a. The <form> tag is optional b. It is recommended to use mailto: as the action on a form since that is the easiest for the web developer c. A form can be used to pass information to a program or script on the web server d. none of the above is true
A form can be used to pass information to a program or script on the web server.
16. _________________ is a standard method or protocol for web pages to request special processing on the web server, such as database queries, sending e-mails, or handling form data. a. <fieldset> b. Common Gateway Interface c. JavaScript d. none of the above
Common Gateway Interface
17. What attributes are valid for the <select> tag? a. name, id, multiple b. name, id, multiple, rows, cols c. name, id, multiple, selected d. name, id, multiple, checked
Name, Id, Multiple, Selected
19. Select the true statement from the choices below. a. A scrolling text box is created using an input element with type="textarea". b. A text box is created using the input element with t ype="box". c. A select list is created using select and input elements. d. None of the above statements are true.
None of the above statements are true.
23. Select the true statement from those listed below. a. The input element with type="email" will cause all browsers to edit for a valid e- mail address. b. The required attribute will cause all browsers to verify that the user has entered information into the form control. c. The input element with type="date" will cause all browsers to display a calendar control d. The input element with type="email" will cause browsers that do not support the attribute to display a text box.
The input element with type="email" will cause all browsers to edit for a valid e- mail address.
3. Use the _____ attribute on the <form> tag to specify the name and location of the script that will process the form control values. a. action b. process c. method d. none of the above
action
2. Select the HTML tag below that configures a button that, when clicked, will automatically reset form fields to their default values. a. <input type="reset"> b. <button type="reset">Reset</button> c. <input type="button" value="Reset" > d. both a and b
both a and b
10. Select the HTML below that would associate a label displaying the text "Phone" with the text box named customerPhone. a. Phone: <input type="textbox" name="customerPhone" > b. <label>Phone: <input type="text" name="customerPhone" ></label> c. <label for="Phone">Phone: </label><input type="text" name="customerPhone" id="Phone" > d. both b and c
both b and c
7. You would like to conduct a survey and ask your web page visitors to indicate the computer operating systems that they use. Each visitor could use more than one computer operating system. Select the form control that is best to use for this purpose. a . check box b. radio button c. text box d. scrolling text box
check box
24. The HTML5 _____________ form control provides the user with a selection of choices along with an option to enter information. a. select list b. check box c. datalist d. slider
datalist
25. Choose the item below that is not a valid value for the input element's type attribute. a. radio b. url c. e-mail d. text
11. Select the attribute used to limit the number of characters that a text box will accept. a. size b. maxlength c. limit d. columns
maxlength