LESSON 21: MORE ON FORMS
- Study the index cards on More On Forms. I've included a hard copy of these
index cards, for your convenience. However, be sure to visit the lesson online and experience
the difference between checkboxes and radio buttons! Be sure you can answer all the questions.
- The
<FORM>
tag takes an ACTION
attribute; what value does this attribute take?
- What are the two possible values for the
METHOD
attribute in the FORM
tag?
- List three common types of INPUTs inside a FORM:
- What kind of inputs is
<INPUT TYPE="text">
used for?
- What is a "checkbox" input type used for?
- Can more than one choice be selected in a checkbox?
- What happens if a form is submitted, and no radio button in a group is selected?
- Please read pages 91102 (all of Chapter 8) in the Weasel book. A lot of this material is repeated from the
index cards in the original course. Some of the questions are repeated below, and some
of these questions are brand new!
- What book does the author recommend for a more in-depth study of HTML?
- Fill in the blanks: Before HTML, there was ______ (which stands for ___ ___ ___ ___).
- How much of SGML does HTML use?
- What are the three "flavors" of HTML documents?
- What does DTD stand for?
- Which DTD excludes all deprecated tags and attributes?
- Which DTD is less restrictive, including many of the elements that are deprecated?
- Most developers today comply with WHICH DTD?
- According to the W3C, what will come after HTML 4.01?
- What does XML stand for?
- List three sets of rules enforced by XHTML that make a document "well-formed":
- What are these called, in the context of HTML? < >
- Is anything inside angle brackets displayed in the browser?
- What are "attributes"?
- Do attributes go in the start tag, or the end tag?
- Is the order that attributes are listed important?
- Study this HTML tag:
<IMG SRC="image.gif" WIDTH="45" HEIGHT="60">
What is the tag name? How many attributes are there? What are these attributes? What is the value
of the WIDTH attribute? What is the value of the SRC attribute?
- Can values for attributes be case-sensitive?
- Under what conditions can the quotation marks around an attribute value be omitted?
- If an attribute value contains a space, then can the quotation marks around the attribute value be omitted?
- What is a simple coding mistake that can cause hours of debugging frustration?
- What does Dr. Fisher recommend that you do, whenever you're typing quotes, like in
SRC="image.gif"
?
- What does nesting refer to?
- Write the code to produce this:
The weather is gorgeous today.
Note that the word "gorgeous" is both bold and italics.
- Correct this code:
The weather is <b><i>gorgeous</b></i> today.
- How is a series of paragraphs tags, with no intervening text, interpreted by browsers?
- What does a browser do with a tag that it doesn't understand?
- Suppose you've mis-typed a tag name, and have
<ING SRC="pic.gif">
What might happen?
- How can you insert comments in HTML?
- What are the two major portions on an HTML document?
- What part of the HTML document contains the stuff that is actually displayed in the browser window?
- The skeletal structure of an HTML document is shown at the bottom of page 97; but HTML 4.01 specifies
that there should be another line. What is it?
THE QUIZ OVER THIS LESSON WILL CONSIST OF:
- (6 pts) Be able to write a question (DIFFERENT from any examples on this website) for which each of the
following input types is appropriate:
-- the "text" type
-- the "checkbox" type
-- the "radio" type
- (3 pts) Show me that you've marked the answers to all the questions in your text book.
- (22 pts) Questions from the index cards and reading (see below).
There will be 27 randomly-chosen questions; you will cross off 5 questions.
The remaining 22 questions are worth 1 point each.
Prepare for the quiz over this section by practicing below.
Questions are asked in random order.
You can generate a printable quiz with solutions.