H401 - Review Questions Week 2

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

    A well-formed document is one that is properly nested (all elements are closed in the proper order) whereas a valid document has been tested against the declared DTD (using a validator).

  2. 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 doesn't allow any presentational elements, transitional allows for the use of stylesheets but also supports the presentational elements (which allows older browsers to still view the layout properly, and frameset is used for the main frameset of the page (the pages within the frameset will need to follow the Strict or Transitional DTD.

  3. Three font questions:
    1. What are two ways to adjust font size in XHTML documents?

      <font> tags and CSS

    2. Which method is preferred?

      CSS

    3. Why is that method preferred?

      The <font> tag is deprecated and will likely be pulled out of the spec at some point in the future.

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

    Place the nested list within the list item of the previous list.
    <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3<ul>
    <li>Sub Item 3.1</li>
    <li>Sub Item 3.2</li>
    <li>Sub Item 3.3</li>
    </li></ul>
    <li>Item 4</li>
    </ul>

    • Item 1
    • Item 2
    • Item 3
      • Sub Item 3.1
      • Sub Item 3.2
      • Sub Item 3.3
    • Item 4
  5. 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! experience (or an Uh-oh, Oh No!, OHHHH, etc.) ... something new or eye-opening that you learned this week.

    I guess the thing that struck me most this week is that the <?xml> declaration can cause the page to display as text in certain browsers. It also appears as though some web servers don't parse that properly, and their pages display as text as well.

Jennifer Griner