Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
- 3rd side (hint)
Forms are usually set up so that the data collected is transmitted to a server-side scripting language program on a Web server. T or F
|
TRUE
p223 |
|
|
The Form object is not part of the browser object model. T or F
|
FALSE
p228 |
|
|
The name attribute is still available in XHTML for the <form> element. T or F
|
FALSE
p229 |
|
|
Most form validation with JavaScript takes place when you submit the form. T or F
|
TRUE
p237 |
|
|
When multiple form elements share the same name, JavaScript creates an array out of the elements using the shared name. T or F
|
TRUE
p243 |
p243
|
|
Many Web sites use ____ to collect information from users and transmit that information to a server for processing.
|
forms
p223 |
a. forms c. tables
b. images d. charts p223 |
|
There are four primary elements used within the <form> element to create form controls: <input>, <button>, <select>, and ____.
|
<textarea>
p227 |
a. <message> c. <output>
b. <textarea> d. <textfield> p227 |
|
To use JavaScript to access form controls and verify form information, you use the ____ object, which represents a form on a Web page.
|
Form
p228 |
a. Document c. Form
b. Page d. Input p228 |
|
The ____ array contains objects representing each of the controls in a form.
|
elements[ ]
p229 |
a. images[] c. options[]
b. controls[] d. elements[] p229 |
|
When a Boolean attribute is not assigned a value, it is referred to as having a(n) ____.
|
minimized form
p231 |
a. full form c. empty form
b. minimized form d. minimized page p231 |
|
You create the ____ of a Boolean attribute by assigning the name of the attribute itself as the attribute’s value.
|
full form
p231 |
a. minimized form c. complete page
b. empty page d. full form p231 |
|
An <input> element with a type of “____” creates a simple text box that accepts a single line of text.
|
text
p234 |
a. submit c. text
b. image d. radio p234 |
|
An <input> element with a type of “____” creates a password box that is used for entering passwords or other types of sensitive data.
|
password
p238 |
a. password c. submit b. text d. image
p238 |
|
An <input> element with a type of “____” creates a push button that is similar to the OK and Cancel buttons you see in dialog boxes.
|
button
p239 |
a. push c. cancel
b. ok d. button p239 |
|
An <input> element with a type of “____” is used to create a group of option buttons, from which the user can select only one value.
|
radio
p240 |
a. radio c. select
b. button d. option p240 |
|
When you have an array that is created from a group of buttons that share the same name, you can use the ____ property to determine which element in a group is selected.
|
checked
p243 |
a. value c. checked
b. name d. options p243 |
|
An <input> element with a type of “____” creates a box that can be set to Yes (checked) or No (unchecked).
|
checkbox
p244 |
a. radio c. button
b. checkbox d. push p244 |
|
To change an option in a selection list, you simply assign new values to the option’s value and ____ properties.
|
text
p255 |
a. text c. options
b. label d. caption p255 |
|
An <input> element with a type of “____” creates a submit button that transmits a form’s data to a Web server.
|
submit
p258 |
a. reset c. send
b. submit d. validate p258 |
|
An <input> element with a type of ____ creates an image submit button.
|
image
p259 |
a. submit c. image
b. push d. text p259 |
|
An <input> element with a type of “____” creates a reset button.
|
reset
p260 |
a. push c. clear
b. cancel d. reset p260 |
|
The ____ event handler executes when a form is submitted to a server-side script.
|
onsubmit
p261 |
a. onsend c. onaccept
b. onsubmit d. onbutton p261 |
|
The ____ event handler executes when a reset button is selected on a form.
|
onreset
p261 |
a. onclear c. onexit
b. oncancel d. onreset p261 |
|
You can use the ____ property to determine whether an individual check box has been selected.
|
checked
p266 |
a. marked c. checked
b. selected d. value p266 |
|
Validating selection lists is a little easier than validating radio buttons and check boxes because you only need to test whether the selection list’s ____ property contains a value of -1.
|
selectedIndex
p266 |
a. selectedIndex c. selected
b. checked d. value p266 |
|
If the size attribute is excluded or set to 1, and the <select> element does not include the ____ attribute, then the selection list is a drop-down style menu.
|
multiple
p267 |
a. field c. rows
b. single d. multiple p267 |
|
Match each item with a statement below:
a. PHP b. MIME c. <select> element d. isNaN() function e. check boxes f. Select object g. Option object h. image submit button i. reset button 1. Displays a graphical image and transmits a form’s data to a Web server 2. Popular server-side scripting language that is used to process form data 3. Displays choices in a drop-down menu or scrolling list known as a selection list 4. Clears all form entries and resets each form element to the initial value specified by its value attribute 5. Represents a selection list in a form 6. Protocol that was originally developed to allow different document types to be transmitted as attachments to e-mail messages 7. Represents an option in a selection list 8. Determines whether the value entered by the user is a number 9. Used when you want users to select whether or not to include a certain item or to allow users to select multiple values from a list of items |
1. ANS: H PTS: 1 REF: 259
2. ANS: A PTS: 1 REF: 223 3. ANS: C PTS: 1 REF: 227 4. ANS: I PTS: 1 REF: 260 5. ANS: F PTS: 1 REF: 250 6. ANS: B PTS: 1 REF: 226 7. ANS: G PTS: 1 REF: 250 8. ANS: D PTS: 1 REF: 237 9. ANS: E PTS: 1 REF: 244 |
|