Name: 
 

Tutorial 6



True/False
Indicate whether the statement is true or false.
 

 1. 

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

 2. 

The introduction of CGI scripts represented a dramatic change in how the Web was perceived and used.
 

 3. 

ISPs and universities may provide CGI scripts that their customers and students can use on their Web sites, but that they cannot directly access or modify.
 

 4. 

To move to the previous text box, press the Alt key while holding down the Shift key.
 

 5. 

Typically, pressing the Ctrl key submits the form.
 

 6. 

Among the attributes included with the <form> tag are attributes that include information on what CGI script to use.
 

 7. 

Among the attributes included with the <form> tag are attributes that include information on how the data is to be transferred to the script.
 

 8. 

When you use the mailto action, you are not given a chance to edit the mail message further.
 

 9. 

A single Web page can contain at most one form.
 

 10. 

Some CGI scripts require a particular field or group of fields.
 

 11. 

Case is important in field names.
 

 12. 

Setting the width of an input box limits the numbers of characters the box can hold.
 

 13. 

Using a password field creates a secure connection between the Web client and the Web server.
 

 14. 

HTML allows you to formally link a label with an associated text element for scripting purposes.
 

 15. 

Users are limited to a single selection from a selection list.
 

 16. 

When the <input> tag is used to create radio buttons, the tag also creates labels for radio buttons.
 

 17. 

There is no attribute to control the size of a group box.
 

 18. 

Check boxes are selected by default.
 

 19. 

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

 20. 

By themselves, command buttons perform no actions in a Web page.
 

 21. 

You can specify name and value attributes for push, submit, and reset buttons.
 

 22. 

When you use a file button, the contents of the file are displayed along with the file’s location.
 

 23. 

It is a common practice to place all hidden fields in one location, usually at the beginning of a form, to make it easier to read and interpret your HTML code.
 

 24. 

When you use the mailto action, depending on how your system is configured, your mail message may be automatically sent to the e-mail address specified by the creator of the form without allowing you to intervene.
 

 25. 

If you don’t specify the “text/plain” value for the enctype attribute of the “mailto” action, the mail message is not sent.
 

 26. 

You can specify the tab order of fields by adding the taborder attribute to any control element in your form.
 

 27. 

If you assign to a field the tab index number “1”, that field is tabbed to go in the order that it appears in the file, as if you had not used a tab index.
 

 28. 

Fields with negative tab indexes are omitted from the tab order entirely.
 

 29. 

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

Modified True/False
Indicate whether the statement is true or false.  If false, change the identified word or phrase to make the statement true.
 

 30. 

The earliest and most common server-based programs are CGI scripts written in a language called perl. _________________________

 

 31. 

Because CGI scripts run on the Web client, Web page designers may not be able to create or edit them. _________________________

 

 32. 

The language used to create a CGI script depends on the Web server. _________________________

 

 33. 

Input boxes are a form control element used for text and numerical entries. _________________________

 

 34. 

Option lists are a form control element for long lists of options. _________________________

 

 35. 

The <table> tag identifies the beginning and end of a form. _________________________

 

 36. 

The <form> tag includes attributes that control how the form is processed. _________________________

 

 37. 

You can prevent users from entering more than nine characters into an input box by inserting the attribute limit=“9” into the <input> tag. _________________________

 

 38. 

The syntax for creating a Password field is <input type= “password” />. _________________________

 

 39. 

While the <label> tag is part of the HTML 4.0 and XML specifications, it is not supported by some older browsers. _________________________

 

 40. 

A(n) check list is a list box from which a user selects a particular value or set of values. _________________________

 

 41. 

You create a selection list using the <list> tag. _________________________

 

 42. 

Adding the several attribute to the <select> tag allows multiple selections from a list. _________________________

 

 43. 

Like selection list items, only one radio button can be selected at a time. _________________________

 

 44. 

When working with radio buttons, you must include the id attribute because it groups distinct radio buttons together, so that selecting one radio button in the group automatically deselects all of the other radio buttons in the group. _________________________

 

 45. 

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

 

 46. 

When using the “mailto” action, if you don’t specify the “text/plain” value for the method attribute, the mail message is sent anyway, but it contains symbols that require a special program to decode. _________________________

 

 47. 

An access key is a single key that you type in conjunction with the Command key for Macintosh users, to jump to one of the control elements in the form. _________________________

 

 48. 

The accepted method for providing a visual clue about the existence of an access key is to boldface the character corresponding to the access key. _________________________

 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 49. 

You should check with your ISP or system administrator to find out what ____ are available and what rights and privileges you have in working with them.
a.
scripts
b.
access keys
c.
passwords
d.
XMLs
 

 50. 

CGI scripts can be written in which of the following languages?
a.
TCP
b.
JavaScript
c.
Perl
d.
Any of the above
 

 51. 

Selection lists usually appear in ____ boxes.
a.
value list
b.
radio
c.
form
d.
drop-down list
 
 
nar001-1.jpg
 

 52. 

As shown in the figure above, the form contains ____ elements, which are commonly used in Web page forms.
a.
control
b.
formula
c.
text
d.
box
 

 53. 

The item marked ____ in the figure above is an input box.
a.
1
b.
2
c.
4
d.
7
 

 54. 

The item marked ____ in the figure above is a selection list.
a.
1
b.
2
c.
3
d.
6
 

 55. 

The items marked 3 in the figure above are ____ buttons.
a.
check
b.
group
c.
option
d.
cluster
 

 56. 

The item marked 4 in the figure above is a(n) ____ button.
a.
report
b.
reset
c.
option
d.
form
 

 57. 

The item marked 7 in the figure above is a ____ area.
a.
registration
b.
form
c.
text
d.
list
 

 58. 

The item marked 5 in the figure above is a ____ box.
a.
text
b.
group
c.
check
d.
form
 

 59. 

Option buttons are sometimes called ____ buttons.
a.
group
b.
cluster
c.
radio
d.
aggregate
 

 60. 

____ boxes are used to organize form elements.
a.
Option
b.
Radio
c.
Text
d.
Groups
 

 61. 

Text ____ are used for extended entries that can include several lines of text.
a.
areas
b.
buttons
c.
rosters
d.
matrices
 

 62. 

Information entered into a field is called the field ____.
a.
index
b.
rating
c.
attribute
d.
value
 

 63. 

Each control element in which the user can enter information is called a(n) ____.
a.
field
b.
index
c.
value
d.
area
 

 64. 

Forms are created using the ____ element.
a.
<field>
b.
<form>
c.
<html>
d.
<input>
 

 65. 

The ____ attribute of the <form> tag represents the older standard for identifying each form on the page.
a.
id
b.
identification
c.
name
d.
what
 

 66. 

The ____ attribute of the <form> tag is often required for older server programs.
a.
value
b.
id
c.
get
d.
name
 

 67. 

HTML supports ____ input types.
a.
10
b.
15
c.
16
d.
17
 

 68. 

If you do not include the type attribute in an <input> tag, the Web browser assumes that you want to create a(n) ____.
a.
check box
b.
input box
c.
option button
d.
submit button
 

 69. 

Which input type displays a browse button to locate and select a file?
a.
type= “attach”
b.
type= “find”
c.
type= “file”
d.
type= “browse”
 

 70. 

Which input type creates a field that is not viewable on the form?
a.
type= “conceal”
b.
type= “off”
c.
type= “view”
d.
type= “hidden”
 

 71. 

Which input type displays an inline image that can be clicked to perform an action from a script?
a.
type= “image”
b.
type= “inline”
c.
type= “picture”
d.
type= “action”
 

 72. 

Which input type displays an input box that hides text entered by the user?
a.
type= “hidden”
b.
type= “password”
c.
type= “user”
d.
type= “hide”
 

 73. 

By default, all input boxes are ____ characters wide.
a.
5
b.
7
c.
20
d.
50
 

 74. 

To define a default value for a field, use the following syntax: ____.
a.
<input field= “value” />
b.
<input main= “value” />
c.
<input default= “value” />
d.
<input value= “value” />
 

 75. 

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
b.
name
c.
label
d.
what
 

 76. 

Press the ____ key to move between input boxes.
a.
Shift
b.
Tab
c.
Ctrl
d.
Alt
 

 77. 

To move to the previous text box, press the Tab key while holding down the ____ key.
a.
Ctrl
b.
Alt
c.
Shift
d.
Esc
 

 78. 

Typically, pressing the ____ key submits the form.
a.
Alt
b.
Ctrl
c.
Esc
d.
Enter
 

 79. 

In the general syntax for the <select> and <option> tags, each ____ tag represents an individual item in the selection list.
a.
<option>
b.
<item>
c.
<index>
d.
<each>
 

 80. 

By default, the ____ tag displays one option from the selection list, along with a list arrow to view additional selection options.
a.
<index>
b.
<select>
c.
<option>
d.
<checked>
 

 81. 

You can change the number of options displayed in a selection list by modifying the ____ attribute.
a.
display
b.
list
c.
size
d.
number
 

 82. 

The syntax for adding the multiple attribute to the <select> tag is: ____.
a.
<select><multiple> . . . </select>
b.
<select option= “multiple”> . . . </select>
c.
<select= “multiple”> . . . </select>
d.
<select multiple> . . . </select>
 

 83. 

For noncontiguous selections from a selection list, press and hold the ____ key while you make your selections.
a.
Ctrl
b.
Shift
c.
Esc
d.
Alt
 

 84. 

For a contiguous selection in a selection list, press and hold the ____ key, and then select the last item in the range.
a.
Ctrl
b.
Shift
c.
Esc
d.
Alt
 

 85. 

HTML allows you to organize selection lists into distinct groups called ____ groups.
a.
option
b.
selection
c.
unique
d.
category
 

 86. 

The ____ attributes define the dimensions of a text area.
a.
height and width
b.
rows and cols
c.
top and bottom
d.
high and wide
 

 87. 

In a text area, if wrap is set to ____, all the text is displayed on a single line.
a.
single
b.
none
c.
off
d.
one
 

 88. 

In a text area, if wrap is set to ____, text wraps automatically to the next row when it extends beyond the width of the text box.
a.
soft
b.
hard
c.
off
d.
either a or b
 

 89. 

In a text area, if wrap is set to ____, the text is sent to the CGI script in a single line without any information about how the text was wrapped within the text box, but the text automatically wraps to the next row when it extends beyond the width of the text box.
a.
soft
b.
hard
c.
off
d.
either a or b
 

 90. 

In a text area, if wrap is set to ____, the information about how the text was wrapped within the text box is sent to the CGI script.
a.
soft
b.
hard
c.
off
d.
either a or b
 

 91. 

For most browsers, if no value for the wrap attribute of a text area is specified, a value of ____ is used.
a.
hard
b.
off
c.
soft
d.
none
 

 92. 

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
b.
radio
c.
group
d.
command
 

 93. 

Which of the following is a possible value for the method attribute of the <form> tag?
a.
get or post
b.
get or put
c.
give or get
d.
put or post
 

 94. 

The ____ method of the <form> tag packages form data by appending it to the end of the URL specified in the action attribute.
a.
post
b.
get
c.
put
d.
keep
 

 95. 

The ____ method of the <form> tag sends form data in a separate data stream, allowing the Web server to receive the data through what is called “standard input.”
a.
put
b.
get
c.
post
d.
keep
 

 96. 

Because it is more flexible, the ____ method is considered the preferred way of sending data to a Web server.
a.
put
b.
get
c.
keep
d.
post
 

 97. 

You can use the ____ attribute of the <form> tag to send form data to a different window or frame.
a.
target
b.
other
c.
external
d.
second
 

 98. 

____ buttons are used to select a single option from a predefined list.
a.
Check
b.
Option
c.
Group
d.
Text
 

Completion
Complete each statement.
 

 99. 

CGI stands for ________________________________________.
 

 

 100. 

____________________ boxes specify an item as either present or absent.
 

 

 101. 

Form ____________________ are control elements that can be clicked to start processing a form.
 

 

 102. 

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

 

 103. 

Information entered into a field is called the field ____________________.
 

 

 104. 

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

 

 105. 

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

 

 106. 

If most people enter the same value into a field, it may make sense to define a(n) ____________________ value for a field.
 

 

 107. 

A(n) ____________________ field is an input box in which the characters typed by the user are displayed as bullets or asterisks.
 

 

 108. 

Adding the ____________________ attribute to the <select> tag allows multiple selections from a list.
 

 

 109. 

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

 

 110. 

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

 

 111. 

A(n) ____________________ button is created using the <input> tag as follows: <input type=“button” value=“text” />.
 

 

 112. 

A(n) ____________________ button is a button that submits the form to the CGI script for processing.
 

 

 113. 

A(n) ____________________ button resets the form to its original values.
 

 

 114. 

A(n) _______________ button is used to select files so that their contents can be submitted for processing to a CGI script.
 

 

 115. 

A(n) ____________________ field is added to the form but not displayed in the Web page.
 

 

 116. 

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

 

 117. 

Web page designers can use tab ____________________ numbers in their forms without worrying about older browsers that do not support this new standard.
 

 

Matching
 
 
Identify the letter of the choice that best matches the phrase or definition.
a.
input boxes
e.
group boxes
b.
selection lists
f.
text areas
c.
option buttons
g.
form buttons
d.
check boxes
h.
fields
 

 118. 

Used to specify an item as either present or absent
 

 119. 

Control elements in which the user can enter information
 

 120. 

Used to select a single option from a predefined list
 

 121. 

Can be clicked to start processing the form
 

 122. 

Used for long lists of options
 

 123. 

Used for extended entries that can include several lines of text
 

 124. 

Used to organize form elements
 

 125. 

Used for text and numerical entries
 

Short Answer
 

 126. 

What is the primary reason to restrict direct access to CGI scripts?
 

 127. 

What is the general syntax of the <form> tag?
 

 128. 

When you first begin designing your form, you leave out the <form> tag attributes about how the form is processed, etc. Why?
 

 129. 

What is the general syntax for input boxes?
 

 130. 

To create an input box, do you have to include the type attribute? Why or why not?
 

 131. 

What is the syntax for changing the width of an input box?
 

 132. 

What is the syntax for setting the maximum length for field input in an input box?
 

 133. 

What are the advantages of default values for fields?
 

 134. 

What happens to a default value in the case of an input box?
 

 135. 

Is the use of a password field the same thing as having a secure connection between the Web client and the Web server?
 

 136. 

What is the syntax for creating a form label?
 

 137. 

When are selection lists a good idea?
 

 138. 

What is the general syntax for creating a selection list?
 

 139. 

If you set the size attribute of a selection list to be equal to the number of options in the selection list, what happens to the scroll bar?
 

 140. 

In a selection list, what happens if you press and hold the Shift key and then select another item in the list?
 

 141. 

What is the syntax to create an option button?
 

 142. 

What is the syntax for creating a group box?
 

 143. 

When would you use the name and value attributes for push, submit, and reset buttons?
 

 144. 

What is the syntax for the inline image control element?
 

 145. 

What is the syntax of the “mailto” action?
 

Essay
 

 146. 

List four things that server-based programs make possible.
 

 147. 

What is the syntax for creating an option group?
 

 148. 

What is the attribute to control the size of a group box? How are the box’s height and width determined? How can you set the width to a specific value? Can group boxes extend across table cells?
 

 149. 

Explain what how each of the three wrap attribute values of text areas work.
 

 150. 

Provide six tips for creating effective forms.
 



 
Check Your Work     Start Over