CSS -- The New CSI

  1. Name on thing that can be done with CSS but cannot easily be done with HTML tags.





  2. How would I modify the text below to apply the class dna to that text?  When you're done there should be only one line of text on the rendered page.
    <head>
       <style type="text/css">

             .dna { color:red }
        </style
    </head>
    <body>
        Not this text.  This should be DNA.  Not this text.
    </body>




  3. Where can the dna tag above be used?
    1. Only in this page.
    2. Only this site.
    3. Only this page and any page linked to by it.
    4. Only files in this directory
    5. Only files with a <link rel=stylesheet ... > link to this page.
    6. None of the above
  4. Write me a line of CSS that sets all links to be blue in 23 point font.


  5. Identical twins have the same fingerprints?
    1. Yes.
    2. No.
    3. Only if they have the same gender.
    4. Science does not know the answer to this question.

  6. Use CSS to set the background image of this page to scene.jpg
    <body                                                                                  >


  7. Which file format is best for a picture like this.


  8. Which tags are affected by this CSS?  
    B.fred { color:red }
    1. All bold text
    2. All text of class fred
    3. All text either bold or of class fred.
    4. CSI Miami is the best CSI
    5. None of the above.
  9. Write me a line of CSS that sets the page title (i.e. the <title> tag stuff) to be in Arial font.


  10. Crime scene investigators
    1. Do not interview witnesses.
    2. Do not go on police raids
    3. Do not wear guns
    4. Do not leave the lab.
    5. All of the above.

  11. Indent this text by 20% of the page width.
    <div style="                                          ">I will catch you</div>