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.

See also color IMAGE Foil 18 Inlined Images: Performance

From Preparing Web Pages - HTML Presentation: Preparing Web Pages with HTML -- Fall Semester 96. by Nancy McCracken-Foils prepared December 5 1996


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Dec 6 1996