CMSI 655
Final Exam

The test is open-everything with the sole limitation that you neither solicit nor give help while the exam is in progress.

Do any 5 of the following 7 problems. If you do more than 5 then you will get credit for your worst five. Each problem will be worth 20 points.
  1. Explain how to make a site whose hyperlinks seem to "disappear" when clicked on.
  2. In Web Design in a Nutshell (pages 142-144), Niederst shows you four disgraceful tricks for producing indented text. For each of the four hacks:
    1. Does the hack validate as XHTML? Explain the validator's output.
    2. Is the method flexible enough for you to specify the amount of indentation? If so, how do you do so; if not, why not?

    Also, show how to produce an indented paragraph using an inline style.

  3. Give the XHTML code that made this (note: no tables were used):

    abc.gif

  4. Write a Javascript function that draws a huge letter "O" at some random location in the browser every 10 seconds.
  5. Show the stylesheet that will make tables appear as if they had the attribute list "border=1 cellspacing=4 cellpadding=10 width=100%" (when no attributes are given).
  6. In HTML and XHTML, The id attribute "must be unique in a document" meaning within a document only ONE element can have a particular id. So explain why, then, does Nierderst write (in Web Design in a Nutshell) that a style rule such as
        #061998 {color: red}

    "applies to all elements with the given ID." In other words, what's the big deal? What does she mean by all of them? Can a single style rule, such as the one above, actually apply to more than one element?

  7. How do you get the space between list items to be set to a certain size? Why won't the line-height property work?