Madamroziyani.files.wordpress.com



Tutorial 06: Working with Web Forms

TRUE/FALSE

1. HTML supports tags that allow you to create forms and analyze the information submitted on forms.

2. The earliest and most common of the languages used for server-based programs are called CGI scripts, written in a language called Perl.

3. PHP and ASP are popular languages widely used today for writing server-based programs.

5. Typically, forms only contain form elements and no page elements.

6. Among the attributes included with the tag are attributes that include information on how to process the form.

7. A single Web page can contain at most one form.

8. One way of organizing a form is to group similar fields into field sets.

13. Though not required, you can specify default text that will appear in the text box when the form is initially displayed.

14. An access key is a single key that you type in conjunction with the Alt key for Macintosh users.

15. When the tag is used to create radio buttons, the tag also creates labels for radio buttons.

17. Check boxes are selected by default.

MULTIPLE CHOICE

1. Information entered into a field is called the field ____.

|a. |index |c. |attribute |

|b. |rating |d. |value |

3. Text ____ are used for extended entries that can include several lines of text.

|a. |areas |c. |rosters |

|b. |buttons |d. |matrices |

4. Selection lists usually appear in a ____ box.

|a. |value list |c. |form |

|b. |radio |d. |drop-down list |

[pic]

5. As shown in the accompanying figure, the form contains ____ elements, which are commonly used in Web page forms.

|a. |control |c. |access |

|b. |formula |d. |box |

6. The items marked ____ in the accompanying figure are input boxes.

|a. |1 |c. |4 |

|b. |2 |d. |7 |

7. The items marked ____ in the accompanying figure are selection lists.

|a. |1 |c. |3 |

|b. |2 |d. |6 |

8. The items marked 3 in the accompanying figure are ____ buttons.

|a. |check |c. |option |

|b. |group |d. |cluster |

9. The item marked 4 in the accompanying figure is a(n) ____ button.

|a. |report |c. |option |

|b. |reset |d. |form |

10. The item marked 7 in the accompanying figure is a ____ area.

|a. |registration |c. |text |

|b. |form |d. |list |

11. The item marked 5 in the accompanying figure is a ____ set.

|a. |text |c. |check |

|b. |field |d. |form |

12. Option buttons are sometimes called ____ buttons.

|a. |group |c. |radio |

|b. |cluster |d. |aggregate |

15. Forms are created using the ____ element.

|a. | |c. | |

|b. | |d. | |

16. The ____ attribute of the tag represents the older standard for identifying each form on the page.

|a. |id |c. |name |

|b. |identification |d. |what |

17. The ____ attribute of the tag is often required for older server programs.

|a. |value |c. |get |

|b. |id |d. |name |

25. When a form is submitted, the server receives the data in ____ pairs.

|a. |name/value |c. |id/value |

|b. |label/name |d. |value/label |

27. When you link a label with an associated text element for scripting purposes, you must bind the label to the ____ attribute of the field.

|a. |id |c. |label |

|b. |name |d. |what |

29. Label elements are normally ____ elements.

|a. |inside |c. |inline |

|b. |outline |d. |outside |

34. Another way you can specify the width is to use the ____ attribute.

|a. |size |c. |length |

|b. |maximum |d. |characters |

36. Typing ____ will specify that at most 7 characters can be displayed in a text box.

|a. | |c. | |

|b. | |d. | |

37. To define a default value for a field, use the following syntax: ____.

|a. | |c. | |

|b. | |d. | |

41. ____ buttons can be placed into a group so that selecting one deselects all of the others.

|a. |Checkbox |c. |Command |

|b. |Image |d. |Radio |

43. To identify the specific options for option buttons, you use the ____ attribute.

|a. |name |c. |id |

|b. |type |d. |value |

44. To specify that an option button be already selected, you type ____.

|a. |checked="yes" |c. |checked="checked" |

|b. |value="checked" |d. |value="yes" |

45. A ____ should be used to provide visual indication that option buttons belong in the same group.

|a. |fieldset |c. |table |

|b. |label |d. |value |

46. In the general syntax for the and tags, each ____ tag represents an individual item in the selection list.

|a. | |c. | |

|b. | |d. | |

47. By default, the ____ tag displays one option from the selection list, along with a list arrow to view additional selection options.

|a. | |c. | |

|b. | |d. | |

48. HTML allows you to organize selection lists into distinct groups called ____ groups.

|a. |option |c. |unique |

|b. |selection |d. |category |

53. ____ are used to check for the presence or absence of something.

|a. |Check boxes |c. |Group boxes |

|b. |Option boxes |d. |Text boxes |

55. The ____ attributes define the dimensions of a text area.

|a. |height and width |c. |top and bottom |

|b. |rows and cols |d. |high and wide |

61. To create an action for a(n) ____ button, you have to write a script or program that runs automatically when the button is clicked.

|a. |option |c. |group |

|b. |radio |d. |command |

62. To create a button that will allow a user to send the form data to the server, you use a type of ____.

|a. |command |c. |option |

|b. |reset |d. |submit |

63. To create a button that will clear the form fields, you use a type of ____.

|a. |command |c. |option |

|b. |reset |d. |submit |

64. The ____ control element is used to create a custom button.

|a. |command |c. |input |

|b. |file |d. |button |

70. You can use the ____ attribute of the tag to send form data to a different browser window or frame.

|a. |target |c. |external |

|b. |other |d. |second |

COMPLETION

1. Information entered into a field is called the field ____________________.

2. CGI stands for ____________________.

3. A(n) ____________________ is a box placed around a set of fields that indicates that they belong to a common group.

4. The input type=“____________________” displays an option button.

5. The input type=“____________________” displays a button that submits the form when clicked.

8. ____________________ buttons are similar to selection lists in that they display a list of choices from which a user makes a selection.

9. Selection lists are used for long lists of options, usually appearing in a(n) ____________________ list box.

11. ____________________ boxes specify an item as either present or absent.

19. You can send form information via e-mail without using a CGI script by using the “____________________” action.

MATCHING

Identify the letter of the choice that best matches the phrase or definition.

|a. |input boxes |g. |form buttons |

|b. |selection lists |h. |fields |

|c. |option buttons |i. |get |

|d. |check boxes |j. |enctype |

|e. |field sets |k. |option groups |

|f. |text areas |l. |hidden |

1. Used to specify an item as either present or absent

2. Basic element storing each piece of form information

3. Used to select a single option from a predefined list

4. Can be clicked to start processing the form

5. Used for long lists of options

6. Used for extended entries that can include several lines of text

7. Used to organize form elements

8. Can be used to create a email field that is part of your form but not displayed

9. Can be used to group items on a drop-down list

10. Used to append form data to a URL

11. Used to indicate what type of data a form is submitting

12. Used for text and numerical entries

ESSAY

1. What is the syntax for creating an option group?

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download