CIT597 Quiz 2
Fall, 2002

Please keep all answers short and to the point. Read each question and answer it; don't add information that wasn't asked for.

  1. (5 points) What, briefly, is the difference between div and span?

  2. (5 points)Write the CSS command to make the font red in all <h2> headers.

  3. (5 points) Suppose you have the header <h2>The Sky</h2>. Using CSS, rewrite this line to make the font blue only in this particular <h2> header.

  4. (5 points) If you have both the commands from question 2 and question 3 in the same HTML document, what color is The Sky? Why?

  5. (12 points) Name and briefly describe the three possible values of the display: property.

  6. (12 points) Briefly tell what each of the following refers to: border, margins, padding. A correctly labeled picture will be a sufficient answer.

  7. (8 points) Briefly define:
    1. Patchwork plagiarism

    2. Lazy plagiarism

  8. (12 points) Write the XPath expression to:
    1. Find every <url> element in a document.

    2. Find the last <url> element in a document.

    3. Find every <url> element with an onsite attribute in a document.

  9. (10 points) In a few words, tell what the following XPath expressions find:
    1. //@size

    2. //[@size]

  10. (8 points) What two common problems does xsl:text help solve?

  11. (8 points) For each of the following XSL tags, tell whether it is a container.
    1. xsl:value-of

    2. xsl:apply-templates

    3. xsl:call-template

    4. xsl: sort

  12. (5 points) What is unusual about the way parameters are passed to a template?

  13. (5 points) What is the abbreviation for parent::node() ?