[thelist] Image Size Included in Image Tag

Stephen Rider evolt_org at striderweb.com
Thu Dec 11 12:14:55 CST 2003


If you include the size attributes then the browser can draw in the 
"placeholder" box before the image is done loading.

Without the placeholder box, some browsers close up the space and then 
"pop" it back open when the image finishes loading (making your page 
text jump around as images load); and I believe other browsers simply 
don't show any of the page until such graphics are done loading.

In other words, if you include them your page will appear to load 
faster.

Steve

On Thursday, December 11, 2003, at 10:53  AM, Brian W. Reaves wrote:

> If I create an image to the size I want it, are there any reasons why 
> I have to include the "height & width" of the image in the "img" tag?
>
> EX:
> <img src="images/image1.jpg" alt="Image" title="Image" />
> vs.
> <img src="images/image1.jpg" height="150" width="150" alt="Image" 
> title="Image" />
>
> TIA,
> -- 
> ======================
> Brian W. Reaves
> Web Consultant
> http://BrianReaves.com
> (334) 728-0102
>
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester and 
> archives of thelist go to: http://lists.evolt.org Workers of the Web, 
> evolt !



More information about the thelist mailing list