Web Tech: Chapter 10
Choose the attribute selector below that will target submit buttons. input[type="submit"] submit submit[input] input.submit
input[type="submit"]
The purpose of the _______ element is to configure a label for a fieldset element. label p form legend
legend
Select the attribute used to limit the number of characters that a text box will accept. size maxlength limit columns
maxlength
Select the type of form control that "disguises" the characters that are typed. text box password box encrypt box hidden box
password box
Select the form control below that would be most appropriate to accept free-form comments about your website. select list text box scrolling text box none of the above
scrolling text box
Select the form control below that does not use the input element. text box select list checkbox radio button
select list
Select the attribute used to configure the width of a text box as displayed in a browser. size maxsize limit columns
size
Choose the item below that is not a valid value for the input element's type attribute. radio url telephone text
telephone
Select the HTML code to configure a button that, when clicked, will automatically reset form fields to their default values. <input type="reset"> <input type="submit" value="Reset"> <reset> <form action="reset">
<input type="reset">
Select the form control from the choices below that may be used to submit a form. <input type="submit"> <submit></submit> <input type="form" value="submit"> <select option="submit">
<input type="submit">
Select the HTML tag below that configures a textbox named "email" that is 40 characters wide. <input type="text" id="email" width="40"> <input type="text" name="email" size="40"> <input type="text" name="email" space="40"> <input type="text" width="40>
<input type="text" name="email" size="40">
Select the HTML below that would associate a label displaying the text "Phone" with the text box named customerPhone. Phone: <input type="textbox" name="customerPhone"> <label>Phone: <input type="text" name="customerPhone"></label> <label for="Phone">Phone: </label><input type="text" name="Phone" id="customerPhone"> <label>Phone:</label> <input type="text" name="customerPhone">
<label>Phone: <input type="text" name="customerPhone"></label>
Choose the HTML tag below that would configure a scrolling text box with the name "feedback", 3 rows, and 60 characters. <textarea name="feedback" width="60" rows="3"></textarea> <input type="textarea" name="feedback" size="60" rows="3"> <textarea name="feedback" rows="3" cols="60"></textarea> none of the above
<textarea name="feedback" rows="3" cols="60"></textarea>
Select the statement below that is true about forms. the form element is optional it is recommended to use mailto: as the action on a form since that is the easiest for the web developer a form can be used to pass information to a program or script on the web server none of the above is true
A form can be used to pass information to a program or script on the web server
Select the true statement from the choices below. a scrolling text box is created using an input element with type="textarea" a text box is created using an input element with type="box" a select list is created using select and input elements a scrolling text box is created using a textarea element
A scrolling text box is created using a textarea element.
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. check box radio button text box scrolling text box
Check box
_______ 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. fieldset Common Gateway Interface JavaScript MIME
Common Gateway Interface
The HTML5 ________ form control provides the user with a selection of choices along with an option to enter information. select list check box datalist slider
Datalist
Select the element used to visually group a number of form controls. group fieldset form label
Fieldset
Select the value of the type attribute that configures an HTML5 spinner control. spinner range number input
Number
Select the value of the type attribute that configures an HTML5 slider control. spinner range number input
Range
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. check box radio button text box select list
Select List
Select the true statement from those listed below. The input element with type="email" will cause all browsers to edit for a valid e-mail address. The required attribute will cause all browsers to verify that the user has entered information into the form control. The input element with type="date" will cause all browsers to display a calendar control. The input element with type="email" will cause browsers that do not support the attribute to display a text box.
The input element with type="email" will cause browsers that do not support the attribute to display a text box.
Use the ______ attribute on the form element to specify the name and location of the script that will process the form control values. action process method none of the above
action
When configuring a radio button form control, the value of the _____ of each radio button must be the same. name id value none of the above
name
What attributes are valid for the select element? name, id, multiple name, id, multiple, rows, cols name, id, multiple, selected name, id, multiple, checked
name, id, multiple