Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)

The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that follows.

Quiz

1:

Suppose that you have a scanned picture of a horse that you need to put on a web page. How big should you make it, and in what file format should you save it?

2:

Your company logo is a black letter Z with a red circle behind it. What size should you draw or scan it, and in what file format should you save it for use on your web page?

3:

Should you save a 100x50 pixel button graphic as an interlaced GIF file?

4:

How would you modify a GIF animation that repeats infinitely to instead play only three times before stopping?

Answers

A1:

Depending on how important the image is to your page, as small as 100x40 pixels or as large as 300x120 pixels. The JPEG format, with about 50% compression, would be best. Of course, you could also provide a thumbnail link to a larger image that is viewed by itself. You'll learn how to use images as links in the next lesson.

A2:

About 100x100 pixels is generally good for a logo, but a simple graphic like that will compress very well; you could make it up to 300x300 pixels if you want. Save it as a 16-color GIF file.

A3:

No. A small file like that will load just as fast or faster without interlacing.

A4:

Using Animation Shop, select Animation, Animation Properties. Click the Looping tab, choose Play It, and enter the number 3.

Категории