CIT 597 Quiz 1: XHTML and CSS
Fall 2008, David Matuszek Name_________________________________________
  1. (3 points) Write a minimal but complete XHTML document to display "Hello World!" The first couple of lines are provided for you.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    <html xmlns="">
        <title>Hello World</title>
        <p>Hello World!</p>

    Notes: The <title> element is required, and the body content must be wrapped in a <p> element or a header (<h1>, <h2>, .. </h6>) element.

  2. (3 points) XHTML is more strict than HTML in several respects. List three of them.

    Three of:

  3. (3 points) Write a CSS rule for each of the following:

    1. Apply color:red to the contents of any tag that has the class="hot" attribute. .

      .hot { color: red; }   // period is required, semicolon is optional

    2. Apply color:red to every <em> element that occurs within a paragraph.

      p em { color: red; }

    3. Set the background-color of all <code> elements to yellow.

      code { color: yellow; }

  4. (1 point) Briefly, what is "V8"? (Hint: it's not vegetable juice.)

V8 is Google's new open source JavaScript engine.