Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Workshop 603

21



  1. False. When you use the width and height style properties to make a large image
    appear smaller on your page, it may reduce the dimensions of the file on the screen,
    but it won’t decrease the download time. The visitor still downloads the same
    image, but the browser just fits it into a smaller space.

  2. Putting your CSS in an external file enables the browser to cache the file so that it
    doesn’t have to download the same information as the user moves from one page
    on the site to another.


Exercises



  1. Go visit several of your favorite sites using a mobile device, preferably a small
    smartphone. How do they look? Do they break any of the rules you learned in this
    lesson? What do they do right?

  2. How would you improve the sites that you visited in exercise 1 for mobile devices?

Free download pdf