QUESTIONS AND CORRECT ANSWERS
Identify a syntax that displays a selection list as a scroll box with 5 options visible in the web
form. - CORRECT ANSWER <select size="5"> ... </select>
Identify the widget that limits a numeric field to a range of possible values by allowing users
to drag a marker horizontally across the possible field values. - CORRECT
ANSWER Slider control
Command buttons are created using the input element with the type attribute set to _____. -
CORRECT ANSWER button
A data entry control is associated with a _____ in which data values supplied by the user are
stored. - CORRECT ANSWER data field
Which of the following is true of field sets? - CORRECT ANSWER Field sets act like
block elements that can expand to accommodate their content.
Identify a pseudo-class for a check box or option button whose toggle states cannot be
ascertained. - CORRECT ANSWER indeterminate
A form contains _____, also called widgets, which are the objects that allow the user to
interact with the form. - CORRECT ANSWER controls
Identify the type of control that performs an action. - CORRECT ANSWER A form
button
Identify the cross-browser style sheet that changes the text color of the placeholder text for
every input box to light red for the moz extension. - CORRECT ANSWER input::-
moz-placeholder {color: rgb(255, 151, 151);}
, A _____ is a control used to enter text strings that may include several lines of content. -
CORRECT ANSWER Text area box
Identify the significance of "text" in <form id="text">. - CORRECT ANSWER It
identifies the form
The technique of immediate data validation and reporting of errors is known as _____. -
CORRECT ANSWER inline validation
HTML supports the _____ attributes to set the text area size. - CORRECT ANSWER
rows and cols
Identify an attribute that can be added to the input element to validate a text value against a
regular expression. - CORRECT ANSWER pattern="regex"
Which of the following is true of nesting a control within a label? - CORRECT
ANSWER It allows the user to move both the label text and the control as a single unit
around the page.
It treats both the label and control as separate objects.
It restricts the movement of the insertion point into the control on the selection of the linked
label.
Identify a true statement of a JavaScript program in a web form. - CORRECT
ANSWER JavaScript intercepts the content of the form before the browser attempts to
contact the CGI script and report whether the data contained in the survey form has been
correctly filled out or not.
JavaScript is a bug-free Visual Basic scripting language, which is used only for networking
applications.