CIT597 Quiz 2
Fall, 2007
Name_________________________________________
  1. Write the CSS rule to make the background of an HTML page pale yellow (hex FFFFF0).



  2. The property:value pair color:blue will make selected elements blue. Write the CSS to make the following things blue:

    1. Everything


    2. All headers (h1 through h6)


    3. Anything in bold (b)


    4. Boldface (b) anywhere within a table


    5. Boldface (b) when it is the immediate child of a table datum (td)


    6. An unordered list (ul) that immediately follows the largest header size (h1)


    7. A paragraph (p) whose font is specified


    8. A paragraph (p) whose font is specified to be Helvetica--or, if that font is not present, then Ariel


  3. Write the CSS to define a property named newword that can be placed within a paragraph (p) tag to make the enclosed element red.



  4. Write the CSS to define a property named new that can be placed within any tag to make the enclosed element red.



  5. HTML has tags named div and span.

    1. These tags have the same purpose. What is that purpose?



    2. What is the difference in the way these two tags are displayed? (Be sure to tell which is which.)



  6. Label the three parts of a styled XML element:
    The element being styled
     

  7. A styled XML element can have one of three display properties. List them and briefly describe each.










  8. Briefly define "pseudo-element."