Week 2 Review Questions

What is the difference between a Well-Formed document and a Valid document?

To be Valid, XHTML mark up must follow all the rules (lowercase tags etc) in addition to being Well-Formed. Well-Formed means that the tags are nested correctly.

Briefly describe the differences between the Strict, Transitional, and Frameset DTDs. You might approach this question by explaining when each would or could be used and adding a little bit of your own reasoning.

Strict DTD is used when you are sticking rigidly to the standards set out by W3C and don't want any presentational clutter.
Transitional DTD is used when you want a little more leeway on which tags you can use and would like to use some presentational tags left over from HTML4.
Frameset DTD is used when you want to have frames (icky!)

Three font questions:

What are two ways to adjust font size in XHTML documents?

Which method is preferred?

Why is that method preferred?

You could use the <big> & <small> tags to resize a small amount of text, or you could use the CSS class or style attribute in the paragraph or div tag, this can be done relatively and absolutely.

The preferred method is via CSS with relative values as this allows on the fly changing of all elements with that class tag instantly and allowing the user to specify how big they want all the text on the page to be relatively, not restricting them to absolute values.

How do you nest lists (ul or ol) in XHTML? --Provide an example please.

<ol>
  <li><strong>Hearing</strong>
    <ol style="list-style-type: lower-alpha;">
      <li>good</li>
      <li>not as acute as that of marine mammals</li>
      <li>hearing range for most birds is 0.1-8 kHz</li>
      <li>Hearing for penguins has not been well researched, but vocalization has.
        <ol style="list-style-type: upper-alpha;">
          <li>Vocalizations (calls) are important in communication and mate recognition.</li>
        </ol>
      </li>
    </ol>
  </li>
</ol>

Briefly describe something you learned this week about XHTML - from the reading, the assignment, etc. Anything really. It would be good if you could share an AHA! (or an OH NO!, UH-OH!, OH GREAT!, etc.) experience ... something new or eye-opening that you learned this week.

I learned a little more about the Strict DTD than I knew before. As I am a fairly experienced XHTML coder already, there wasn't any blinding flashes of light this week, I'm sure there will be soon tho!