CSS and XML Homework, due April 24

For those working from the CS3 textbook, the homework is from Chapters 10 and 11. Complete the chapters and turn in the following five exercises:

  • From Chapter 10, four exercises: p. 428 and p. 432, The Power of CSS; p. 442, Embedded Fonts; and p. 445, Loading External CSS
  • From Chapter 11, one exercise: p. 463, Your Turn.

For those working from the CS4 textbook, the homework is from Chapters 12 and 13. Complete the chapters and turn in the following five exercises:

  • From Chapter 12, four exercises: p. 534 and p. 537, Styling with CSS; p. 547, Embedded Fonts; and p. 551, Loading External CSS.
  • From Chapter 13, one exercise: p. 572, Your Turn.

NOTE: The CS4 textbook contains some errors;

  • p.564, In the first and third code snippets, the expression xml should be xmlDoc; that is:
    trace(xml.film[0]); should be trace(xmlDoc.film[0]);,
    trace(xml.film[1]); should be trace(xmlDoc.film[1]);,
    and trace(xmlDoc.film[xml.film.length() – 1].@title); should be trace(xmlDoc.film[xmlDoc.film.length() – 1].@title)
  • p.566, The last code snippet on this page should be trace(xmlDoc.film[2].cast.descendants()); (on the printed page, the expression erroneously contains an additional word, “character”).

Leave a Reply