[thelist] Image Size Included in Image Tag

Jay Fitzgerald jayfitz at bayou.com
Thu Dec 11 13:21:48 CST 2003

If you are using XHTML coding standard such as this:
<img src="images/image1.jpg" alt="Image" title="Image" />

ALWAYS place the width and heigh in your image tags. The reason for this
is that the server does not have to work as hard when trying to parse
your code. If all your HTML variables are included and enclosed in
double quotes, the server knows that that information has to be
"handled". I found this out the hard way.


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of mike karthauser
Sent: Thursday, December 11, 2003 12:11 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Image Size Included in Image Tag

> 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" />

Its up to you. The advantage of image sizes is that the display doesn¹t
shuffle around whilst waiting for the images to load. Its still a good
idea in navigations but other than that its up to you. If the image is
under 2Kb you can probably ignore sizes.

Mike Karthauser 
Managing Director - Brightstorm Ltd

Email       >> mikek at brightstorm.co.uk
Web         >> http://www.brightstorm.co.uk
Tel         >> 0117 9426653 (office)
               07939 252144 (mobile)

Snailmail   >> Unit 8, 14 King Square,
               Bristol BS2 8JJ

* * Please support the community that supports you.  * *

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