Deck 10: Creating and Processing Web Forms
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Match between columns
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/71
Play
Full screen (f)
Deck 10: Creating and Processing Web Forms
1
Although older browsers don't recognize email or other modern type values, all browsers default to a value of blank if no other recognized value is specified. _________________________
False
2
Each input element in a set of option buttons must include the name attribute with a value different than other members of the set.
False
3
You can add the selected attribute to an option element in order to make it selected by default. _________________________
True
4
When you want users to be able to select one or more predefined choices independent of each other, a(n) check box usually makes the most sense._________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
5
Form elements in which users enter or select data are known as fields or labels ._________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
6
Each option element defines a single menu option for a drop-down menu ._________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
7
A form needs to include a(n) upload button, which is a button that users can click to submit the data they've entered. _________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
8
If your web form includes a single field into which users entered their first and last names, you can easily sort the resulting information by last name.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
9
User agents group the name attribute of each field with the value entered or selected by a user.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
10
Labels and fields don't usually require styling to optimize usability.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
11
The action attribute is added to the opening form tag to specify the name and location of a script that will accept the form data. _________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
12
Like a table, a web page form contains a series of columns and column headings.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
13
For a field with the type value number , some modern browsers flag or reject non-numerical input.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
14
When using a drop-down menu, once a user clicks an option to select it, the list is hidden and the selected value is displayed in the text box.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
15
Users provide most information in a form through input elements.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
16
For a field with the value email for the type attribute, touchscreen devices may display buttons such as an @ key._________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
17
Specifying the value text for the type attribute creates a generic text box.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
18
The value submitted for a check box is the text entered by a user in the box.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
19
You use the choice element to create a drop-down menu, with option elements nested within it to specify the list items._________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
20
You customize the size of a text box with the CSS length property. _________________________
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
21
The ____ element marks a single entry in a drop-down list.
A) input
B) option
C) select
D) label
A) input
B) option
C) select
D) label
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
22
The type value ____ for the input element may cause modern browsers to style input to match styling of search boxes in other parts of the user interface.
A) find
B) input
C) select
D) search
A) find
B) input
C) select
D) search
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
23
A check box should always ____ its label text for optimal usability.
A) follow
B) precede
C) be separated by 2 spaces from
D) be separated by 1 space from
A) follow
B) precede
C) be separated by 2 spaces from
D) be separated by 1 space from
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
24
To make the significance of each field clear to users, it's important to associate each field with a(n) ____, which is an element containing descriptive text that is associated with a field.
A) attribute
B) record
C) button
D) label
A) attribute
B) record
C) button
D) label
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
25
The type value ____ for the input element may cause touchscreen devices to display keyboards with -, *, and # keys.
A) url
B) password
C) telephone
D) tel
A) url
B) password
C) telephone
D) tel
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
26
The ____ attribute approximates how many characters should fit across the box.
A) box
B) cols
C) font
D) chars
A) box
B) cols
C) font
D) chars
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
27
You can further increase the usability of your form by adding a descriptive title to each fieldset. Such a title is known as a ____.
A) label
B) title
C) legend
D) callout
A) label
B) title
C) legend
D) callout
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
28
____ are displayed on web pages as boxes to check, boxes in which to enter text, or lists of options.
A) Fields
B) Records
C) Cells
D) Buttons
A) Fields
B) Records
C) Cells
D) Buttons
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ attribute specifies how many rows of input are visible.
A) rows
B) visible
C) input
D) show
A) rows
B) visible
C) input
D) show
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
30
By default, most browsers surround the fields in a fieldset with ____, creating a visual cue that the fields share a common subject.
A) a circle
B) a box
C) a gray shadow
D) a black shadow
A) a circle
B) a box
C) a gray shadow
D) a black shadow
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
31
Which of the following is a component of a form?
A) check box
B) cell
C) figure
D) list item
A) check box
B) cell
C) figure
D) list item
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
32
The ____ element marks a set of entries to display as a drop-down list.
A) input
B) option
C) select
D) label
A) input
B) option
C) select
D) label
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
33
The type value ____ for the input element may cause modern browsers to validate entries to ensure that they are valid web addresses.
A) web
B) addr
C) www
D) url
A) web
B) addr
C) www
D) url
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
34
The type value ____ for the input element causes most browsers to display text entered by users as bullets or asterisks rather than showing the actual characters.
A) password
B) hide
C) secure
D) username
A) password
B) hide
C) secure
D) username
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
35
An option button is also known as a(n) ____ button and is best suited for prompting users to select only one item from a group.
A) select
B) bullet
C) radio
D) toggle
A) select
B) bullet
C) radio
D) toggle
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
36
A __________ allows users to enter multiple lines of text.
A) text area
B) text box
C) label
D) fieldset
A) text area
B) text box
C) label
D) fieldset
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
37
The type value ____ for the input element may cause modern browsers to validate that entries are valid email addresses.
A) check
B) mail
C) email
D) scan
A) check
B) mail
C) email
D) scan
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
38
You can use the __________ attribute to populate text boxes with instructions in modern browsers.
A) placeholder
B) instructions
C) text
D) tip
A) placeholder
B) instructions
C) text
D) tip
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
39
In most forms, groups of fields form logical units. In a web page form, these groups are known as ____.
A) valuesets
B) valuegroups
C) fieldsets
D) fieldgroups
A) valuesets
B) valuegroups
C) fieldsets
D) fieldgroups
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
40
The ____ element marks a multiline area where users can enter text.
A) input
B) inputarea
C) text
D) textarea
A) input
B) inputarea
C) text
D) textarea
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
41

A) chosen
B) checked
C) marked
D) button
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
42

A) input
B) textarea
C) fieldset
D) field
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
43
Case-Based Critical Thinking Question Brendan is debugging the website for a cooking and baking supply store. The site includes a web form that customers can complete to request hard to find items.
Brendan notices that the last question of the form allows users to write their comments, but uses a field created with the input element. To allow users to enter text that spans multiple lines, he replaces the field with the __________ element.
A) select
B) fieldset
C) label
D) textarea
Brendan notices that the last question of the form allows users to write their comments, but uses a field created with the input element. To allow users to enter text that spans multiple lines, he replaces the field with the __________ element.
A) select
B) fieldset
C) label
D) textarea
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
44

A) name
B) legend
C) label
D) value
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
45

A) select
B) option
C) input
D) textarea
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
46
You create a submit button using an image with the value __________ for the type attribute.
A) button
B) image
C) reset
D) submit
A) button
B) image
C) reset
D) submit
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
47
Browsers display a drop-down menu as a small text box with a(n) ____ next to it.
A) square
B) diamond
C) circle
D) arrowhead
A) square
B) diamond
C) circle
D) arrowhead
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
48

A) input
B) label
C) fieldset
D) legend
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
49
An input element with a type value of ____ creates a generic button that can be programmed using a script.
A) generic
B) button
C) script
D) input
A) generic
B) button
C) script
D) input
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
50
Case-Based Critical Thinking Question Brendan is debugging the website for a cooking and baking supply store. The site includes a web form that customers can complete to request hard to find items.
Brendan's debugging also reveals that the form is missing the closing tag for the element that encloses all of the elements in the form, which is __________.
A) form
B) fieldset
C) input
D) select
Brendan's debugging also reveals that the form is missing the closing tag for the element that encloses all of the elements in the form, which is __________.
A) form
B) fieldset
C) input
D) select
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
51
A(n) ___________ element with a type value of submit is used to create a submit button.
A) form
B) button
C) input
D) fieldset
A) form
B) button
C) input
D) fieldset
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
52

A) text
B) radio
C) checkbox
D) button
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
53

A) select
B) option
C) input
D) textarea
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
54
Case-Based Critical Thinking Question Sophia has a website that promotes her hairstyling business. She wants to expand her new customer contact form with a few additional questions.
Sophia wants to include a single set of buttons asking about how often the client prefers to have their hair done. To ensure that clients select only one box in the set, she should use __________.
A) check boxes
B) option buttons
C) either a or b
D) neither a nor b
Sophia wants to include a single set of buttons asking about how often the client prefers to have their hair done. To ensure that clients select only one box in the set, she should use __________.
A) check boxes
B) option buttons
C) either a or b
D) neither a nor b
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
55

A) name
B) legend
C) label
D) value
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
56

A) input
B) textarea
C) select
D) option
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
57
Case-Based Critical Thinking Question Sophia has a website that promotes her hairstyling business. She wants to expand her new customer contact form with a few additional questions.
Sophia wants to include a single set of buttons asking about different aspects of the client's hair, including length, color, and curl. To allow clients to select more than one box in the set, she should use __________.
A) check boxes
B) option buttons
C) either a or b
D) neither a nor b
Sophia wants to include a single set of buttons asking about different aspects of the client's hair, including length, color, and curl. To allow clients to select more than one box in the set, she should use __________.
A) check boxes
B) option buttons
C) either a or b
D) neither a nor b
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
58

A) label
B) legend
C) input
D) h3
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
59
Case-Based Critical Thinking Question Brendan is debugging the website for a cooking and baking supply store. The site includes a web form that customers can complete to request hard to find items.
Brendan recognizes that the HTML for the form is missing the element to indicate a single entry in a drop-down list, which is ____.
A) input
B) select
C) label
D) option
Brendan recognizes that the HTML for the form is missing the element to indicate a single entry in a drop-down list, which is ____.
A) input
B) select
C) label
D) option
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
60
The __________ button is not used by some designers because a user can confuse it with a submit button and inadvertently lose all input.
A) clear
B) reset
C) image
D) undo
A) clear
B) reset
C) image
D) undo
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
61
List and describe 3 kinds of form fields that you can create with the input element.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
62
Touchscreen devices with on-screen keyboards may display customized buttons for certain values of the type attribute for the __________ element.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
63
A(n) ________________ is a box that users can click to add or remove a check mark, enabling users to select or deselect it.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
64
What attribute must the form element contain to enable form submission? What attribute must all elements within the form contain? How are the values of these attributes used in form submission?
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
65
Match between columns
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
66
"Control" is another term for a(n) __________.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
67
A group of fields that forms a logical unit is known as a(n) __________.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
68
Describe the difference between a text box and a text area, and explain when you would use each one.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
69
Each element in a set of option buttons must include the __________ attribute with a value identical to all other members of the set.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
70
You can create different kinds of fields with the input element by specifying different values for the __________ attribute.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck
71
A descriptive title for a fieldset is known as a(n) __________.
Unlock Deck
Unlock for access to all 71 flashcards in this deck.
Unlock Deck
k this deck