HTML and CSS Reference
In-Depth Information
5. Which of the following form controls would be
appropriate for an area that your visitors can use
to type in their e-mail address?
a. select list
b. text box
c. scrolling text box
d. none of the above
10. Choose the XHTML that would associate a label
displaying the text E-Mail : with the text box
named email .
a. E-mail <input type="textbox"
name="email" id="email" />
b. <label>E-mail: <input type="text"
name="email" id="email" /> </label>
c. <label for="email">E-mail
</label><input type="text"
name="email" id="email" />
d. both b and c
6. You would like to conduct a survey and ask your
Web page visitors to vote for their favorite search
engine. Which of the following form controls is
best to use for this purpose?
a. check box
b. radio button
c. text box
d. scrolling text box
Fill in the Blank
11. To limit the number of characters that a text box
will accept, use the ____________________
attribute.
7. You would like to conduct a survey and ask your
Web page visitors to indicate the Web browsers
that they use. Which of the following form con-
trols is best to use for this purpose?
a. check box
b. radio button
c. text box
d. scrolling text box
12. To group a number of form controls visually on
the page, use the ____________________ tag.
13. To cause a number of radio buttons to be treated
as a single group, the value of the
____________________ attribute must be
identical.
8. An order form contains an area for Web visitors
to select their preferred method of shipping. You
need to limit the amount of space on the form
that is used for this feature. Which of the follow-
ing form controls is best to use for this purpose?
a. check box
b. radio button
c. text box
d. select list
Short Answer
14. Explain why a Web developer should avoid using
mailto : to process form information.
15. List one purpose of using a form on a Web page.
9. Which XHTML tag would configure a scrolling
text box with the name comments, 2 rows, and
30 characters?
a. <textarea name="comments" width="30"
rows="2"></textarea>
b. <input type="textarea"
name="comments" size="30" rows="2" />
c. <textarea name="comments" rows="2"
cols="30"></textarea>
d. none of the above
Search WWH ::




Custom Search