CIT597 Quiz 2
Fall, 2002 |
Name_________________________________________ |
Please keep all answers short and to the point. Read each question and answer
it; don't add information that wasn't asked for.
- (5 points) What, briefly, is the difference between div
and span?
- (5 points)Write the CSS command to make the font red in all <h2>
headers.
- (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.
- (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?
- (12 points) Name and briefly describe the three possible values of
the display: property.
-
- (12 points) Briefly tell what each of the following refers to: border,
margins, padding.
A correctly labeled picture will be a sufficient answer.
- (8 points) Briefly define:
- Patchwork plagiarism
- Lazy plagiarism
- (12 points) Write the XPath expression to:
- Find every <url>
element in a document.
- Find the last <url>
element in a document.
- Find every <url>
element with an onsite
attribute in a document.
- (10 points) In a few words, tell what the following XPath expressions find:
- //@size
- //[@size]
- (8 points) What two common problems does xsl:text
help solve?
- (8 points) For each of the following XSL tags, tell whether it is a container.
- xsl:value-of
- xsl:apply-templates
- xsl:call-template
- xsl: sort
- (5 points) What is unusual about the way parameters are passed to a template?
- (5 points) What is the abbreviation for parent::node()
?