Week 4 Part 1


Quiz Questions and Answers



1. What is the default for background color?
     The default is transparent.

2. True or False? A background-image can only be used for the body of your page.
     False. A background-image can be used with other selectors, such as headings and paragraph tags,as seen on this page.

3. Which of the following is the correct syntax for background-image in embedded or linked style?
     The correct answer is B.
background-image : url(graphics/wk4bg.jpg);

4. True or False? Padding can only be added in equal amounts on each side of your box.
     False. Padding can be added in unequal values to the top, right, bottom and left.

5. True or False? Border styles are universal in all the major browsers.
     False. Nothing is universal in all the major browsers!

6. True or False? When grouping selectors, it's a good idea to group p, td, etc. with the body selector if using a background-image. Why or why not?
     False. Netscape will not interpret this correctly and strange effects may result.

On to Part Two