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.
- What is one disadvantage of using frames?
- 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)?
- Which two image compression formats (jpg, png, gif) would produce an image with a transparent background?
- 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)?
- List three ways to include styles on a web page (be precise: show correct html or css).
- 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?
- Write a selector for a single rule to affect h1, h2, and h3 heading elements.
- 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.
- Write a rule to make a link turn red when I hover over it.
- 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.