Deck 9: Forms

Full screen (f)
exit full mode
Question
The purpose of the __________ is to configure a label for a < fieldset >.

A) < label >
B) < p >
C) < form >
D) < legend >
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
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
Question
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
Question
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
Question
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
Question
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
Question
Select the type of form control that "disguises" the characters that are typed.

A) text
B) password
C) encrypt
D) textbox
Question
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
Question
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" >
Question
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
Question
Select the attribute used to limit the number of characters that a text box will accept.

A) size
B) maxlength
C) limit
D) columns
Question
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 type="box".
C) A select list is created using select and input elements.
D) None of the above statements are true.
Question
Select the tag used to visually group a number of form controls.

A) < group >
B) < fieldset >
C) < form >
D) none of the above
Question
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" >
Question
Select the form control below that does not use the < input > tag.

A) text box
B) select list
C) checkbox
D) radio button
Question
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
Question
_________________ 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
Question
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
Question
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
Question
Select the value of the type attribute that configures an HTML5 spinner control.

A) spinner
B) range
C) number
D) input
Question
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
Question
Select the value of the type attribute that configures an HTML5 slider control.

A) spinner
B) range
C) number
D) input
Question
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.
Question
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
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 9: Forms
1
The purpose of the __________ is to configure a label for a < fieldset >.

A) < label >
B) < p >
C) < form >
D) < legend >
D
2
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
A
3
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
A
4
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Select the type of form control that "disguises" the characters that are typed.

A) text
B) password
C) encrypt
D) textbox
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
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" >
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Select the attribute used to limit the number of characters that a text box will accept.

A) size
B) maxlength
C) limit
D) columns
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
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 type="box".
C) A select list is created using select and input elements.
D) None of the above statements are true.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Select the tag used to visually group a number of form controls.

A) < group >
B) < fieldset >
C) < form >
D) none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
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" >
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Select the form control below that does not use the < input > tag.

A) text box
B) select list
C) checkbox
D) radio button
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
_________________ 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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Select the value of the type attribute that configures an HTML5 spinner control.

A) spinner
B) range
C) number
D) input
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Select the value of the type attribute that configures an HTML5 slider control.

A) spinner
B) range
C) number
D) input
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
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.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.