Pit Falls of the IMG HEIGHT and WIDTH Paramaters
If you are using the <IMG SRC> WIDTH and HEIGHT parameters here are a couple of the pitfalls and conflicts between the image size and the alternate image text that you should be using in your IMG HTML tags.
First of all WIDTH and HEIGHT are not required parameters. An alternative to using them is to make sure your original image is the size you want before uploading it to your website. Without the HEIGHT and WIDTH tags, most browsers will render them in their native size.
So here’s the problem for people who surf with images turned off in their browser (it’s faster). If the image is never downloaded, the browser will reserve the space that the HEIGHT and WIDTH parameters specified. The browser will than try and fit the ALT text description in that space. If it’s to small, it will look weird and if it’s to large, maybe the same problem.
If you don’t use the WIDTH and HEIGHT parameter, most browsers will render the space required for the length of your ALT text description.
You should test your pages in several different browsers with images turned on and off to see how your pages look.
Return to the <IMG SRC> HTML tag syntax
Return to the <IMG SRC> WIDTH and HEIGHT parameters
Tweet This Post
