Web Dev Chapter 13 Quiz
How many check boxes from the following code can be selected at any given time? <input type="checkbox" name="address" value="Home">Home Address <input type="checkbox" name="delivery" value="FedEx">Federal Express <input type="checkbox" name="delivery" value="UPS">UPS A. 3 B. 0 C. 1 D. 2
A. 3
When the user clicks a submit button for a form, A. HTML5 validation is done and the data is sent to the server if no errors are found B. the form data is sent to the server C. JavaScript validation is done and the data is sent to the server if no errors are found D. HTML5 validation is done
A. HTML5 validation is done and the data is sent to the server if no errors are found
The HTML5 attributes for data validation are A. autocomplete, required, novalidate B. required, validate C. autocomplete, required, validate D. required, novalidate
A. autocomplete, required, novalidate
A hidden text field A. doesn't appear on the form but its data is sent to the server B. has data that is obscured by bullets or asterisks C. appears on the form but its data is hidden D. appears on the form with its data grayed out
A. doesn't appear on the form but its data is sent to the server
In a list box, the user can select A. more than one option but only if the multiple attribute is on B. more than one option but only if the single attribute is off C. just one option D. more than one option
A. more than one option but only if the multiple attribute is on
To align the labels and controls on a form, you can A. use CSS to float the labels to the left and set the widths of the labels and controls B. use CSS to set the widths of the labels and controls C. use CSS to float the labels to the left of the controls D. code the labels before the controls in the HTML
A. use CSS to float the labels to the left and set the widths of the labels and controls
To provide a label for a control on a form, you should A. code the label right before the control B. set the for attribute of the label to the id of the control C. code the label right after the control D. set the control attribute of the label to the id of the control
B. set the for attribute of the label to the id of the control
When form data is sent to the server with the get method, A. the data is packaged in the HTTP request B. the data is sent as part of the url C. the data isn't validated before it is sent D. the data is validated before it is sent
B. the data is sent as part of the url
If you assign an access key to a label, A. the user must press the access key twice to move the focus to the related control B. the focus moves to the related control when the user presses the access key C. nothing happens when the user presses the access key because a label can't receive the focus D. the user must press the access key and then the tab key to move the focus to the related control
B. the focus moves to the related control when the user presses the access key
To associate a field with a data list, you set A. the for attribute of the datalist element to the id of the field B. the list attribute of the field to the id of the datalist element C. the list attribute of the datalist element to the id of the field D. the for attribute of the field to the id of the datalist element
B. the list attribute of the field to the id of the datalist element
The attributes of a form element specify A. the submission method and whether the data is passed as part of the URL B. the submission method and the URL for the server-side script C. the name of the submit button and the submission method D. the name of the submit button and the URL for the server-side script
B. the submission method and the URL for the server-side script
To stop the browser from automatically displaying entry options when the user starts an entry in a control, A. you can turn off the novalidate attribute for the control B. you can turn off the autocomplete attribute for the control C. you can turn on the required attribute for the control D. you can turn on the nocomplete attribute for the control
B. you can turn off the autocomplete attribute for the control
The CSS3 pseudo-classes for data validation are A. :required, :valid, :notvalid B. :required, :notrequired, :valid C. :required, :valid, :invalid D. :required, :notrequired, :valid, :invalid
C. :required, :valid, :invalid
To implement a search function for your website, you must include A. an input element plus a submit button B. an input element, submit button, and a hidden field that specifies the domain for the search C. an input element, submit button, and hidden fields that specify the domain for the search and that only that domain should be searched D. an input element with its type attribute set to "search"
C. an input element, submit button, and hidden fields that specify the domain for the search and that only that domain should be searched
A text area is like a text field but A. it can have more than one line of data B. it can have white space C. it can accept numeric data D. it can have a starting value
C. it can accept numeric data
To provide a way to automatically send the data in a form to the server, you can add this type of button to the form: A. image B. send C. submit D. button
C. submit
In most cases, you should use the post method instead of the get method for submitting a form because A. it provides more options for validation B. the validation is done more efficiently C. the form data that's sent is more secure D. it's easier to process the form data on the server
C. the form data that's sent is more secure
How many radio buttons from the following code can be selected at any given time? <input type="radio" name="address" value="Home">Home Address <input type="radio" name="delivery" value="FedEx">Federal Express <input type="radio" name="delivery" value="UPS">UPS A. 1 B. 3 C. 0 D. 2
D. 2
To put a starting value in a form field when it's first displayed, you can use this field attribute: A. autofocus B. hint C. default D. placeholder
D. placeholder
By default, when the user presses the Tab key, the focus moves from one control to another in A. the sequence that they were added to the form B. the sequence that they were added to the form, not including labels C. the sequence that they appear in the HTML D. the sequence that they appear in the HTML, not including labels
D. the sequence that they appear in the HTML, not including labels
