Deck 10: Form Basics
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
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/26
Play
Full screen (f)
Deck 10: Form Basics
1
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 an input element with type="box".
C) A select list is created using select and input elements.
D) A scrolling text box is created using a textarea element.
A) A scrolling text box is created using an input element with type="textarea".
B) A text box is created using an input element with type="box".
C) A select list is created using select and input elements.
D) A scrolling text box is created using a textarea element.
D
2
Select the form control below that would be most appropriate to accept free-form comments about your website.
A) select list
B) text box
C) scrolling text box
D) None of the above
A) select list
B) text box
C) scrolling text box
D) None of the above
C
3
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="Phone" id="customerPhone" >
D) < label >Phone:< /label > < input type="text" name="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="Phone" id="customerPhone" >
D) < label >Phone:< /label > < input type="text" name="customerPhone" >
B
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
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 26 flashcards in this deck.
Unlock Deck
k this deck
5
Select the statement below that is true about forms.
A) The form element 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) The form element 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 26 flashcards in this deck.
Unlock Deck
k this deck
6
When configuring a radio button form control, the value of the ______ of each radio button must be the same
A) name
B) id
C) value
D) none of the above
A) name
B) id
C) value
D) none of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
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
A) check box
B) radio button
C) text box
D) scrolling text box
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
8
Use the _____ attribute on the form element 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
A) action
B) process
C) method
D) none of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
9
Select the HTML code to configure a button that, when clicked, will automatically reset form fields to their default values.
A) < input type="reset" >
B) < input type="submit" value="Reset" >
C) < reset >
D) < form action="reset" >
A) < input type="reset" >
B) < input type="submit" value="Reset" >
C) < reset >
D) < form action="reset" >
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
10
Select the attribute used to configure the width of a text box as displayed in a browser.
A) size
B) maxsize
C) limit
D) columns
A) size
B) maxsize
C) limit
D) columns
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
11
Select the element used to visually group a number of form controls.
A) group
B) fieldset
C) form
D) label
A) group
B) fieldset
C) form
D) label
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
12
The purpose of the __________ element is to configure a label for a fieldset element.
A) label
B) p
C) form
D) legend
A) label
B) p
C) form
D) legend
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
13
_________________ 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) MIME
A) fieldset
B) Common Gateway Interface
C) JavaScript
D) MIME
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
14
Select the HTML tag below that configures a textbox named "email" that is 40 characters wide.
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" >
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 26 flashcards in this deck.
Unlock Deck
k this deck
15
Select the attribute used to limit the number of characters that a text box will accept.
A) size
B) maxlength
C) limit
D) columns
A) size
B) maxlength
C) limit
D) columns
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
16
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
A) check box
B) radio button
C) text box
D) select list
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
17
Select the form control below that does not use the input element.
A) text box
B) select list
C) checkbox
D) radio button
A) text box
B) select list
C) checkbox
D) radio button
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
18
Select the type of form control that "disguises" the characters that are typed.
A) text box
B) password box
C) encrypt box
D) hidden box
A) text box
B) password box
C) encrypt box
D) hidden box
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
19
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="form" value="submit" >
D) < select option="submit" >
A) < input type="submit" >
B) < submit >< /submit >
C) < input type="form" value="submit" >
D) < select option="submit" >
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
20
What attributes are valid for the select element?
A) name, id, multiple
B) name, id, multiple, rows, cols
C) name, id, multiple, selected
D) name, id, multiple, checked
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 26 flashcards in this deck.
Unlock Deck
k this deck
21
Select the value of the type attribute that configures an HTML5 slider control.
A) spinner
B) range
C) number
D) input
A) spinner
B) range
C) number
D) input
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
22
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
A) select list
B) check box
C) datalist
D) slider
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
23
Select the value of the type attribute that configures an HTML5 spinner control.
A) spinner
B) range
C) number
D) input
A) spinner
B) range
C) number
D) input
Unlock Deck
Unlock for access to all 26 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.
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 26 flashcards in this deck.
Unlock Deck
k this deck
25
Choose the attribute selector below that will target submit buttons.
A) input[type="submit"]
B) submit
C) submit[input]
D) input.submit
A) input[type="submit"]
B) submit
C) submit[input]
D) input.submit
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
26
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
A) radio
B) url
C) e-mail
D) text
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck