More attributes of the IMG tag specify the width and height of the image in pixels. |
<img src="rugbanner.gif" width=150 height=50> |
Typically, images are quite large and take longer to download than text files. If the browser knows the width and height of the image, it can leave space for the image and go ahead and format the remaining text. The image can be downloaded afterward. This means that the viewer can go ahead and start reading text after the image while waiting for it to download. |
If the width and height specified do not match the actual image, the image is automatically scaled to fit. |
Interlaced gifs are another technique for downloading images in strips. |