COM271, Week 3

CSS Basics

Syllabus | Table of Pages | Assignments | References and Useful Links
←Review, Week 2 | Review, Week 4→

Answer these questions by reviewing the notes for week 3. Hand in at beginning of first lecture, week 5.

  1. What is one disadvantage of using frames?
  2. Which image compression format would I use for photographs in my page, .jpg or .gif and why (no credit without a reasonable answer to why)?
  3. Which two image compression formats (jpg, png, gif) would produce an image with a transparent background?
  4. Where can you find out whether a rule for transparency is part of the current CSS recommendation (look up and report the best source's URL)?
  5. List three ways to include styles on a web page (be precise: show correct html or css).
  6. If I have a paragraph identified with id="first_paragraph", what would I use as a selector so that my rule would affect only this and no other paragraph?
  7. Write a selector for a single rule to affect h1, h2, and h3 heading elements.
  8. If I have several paragraphs and some spans that use the attribute class="running_header", write a compound selector (hint: uses commas) that would affect these paragraphs and spans.
  9. Write a rule to make a link turn red when I hover over it.
  10. If I have a style sheet rule for paragraphs and a conflicting style attribute within a paragraph, which rule will win?

These questions are worth one point each. Grades for each question are 0 or 1 (no partial credit). Total points this review: 10. At the end of the course, total points will be added, divided by 100, and that fraction will be applied to 20% of your grade (maximum points from reviews is 20% of grade). See Assignments and Grading.