[Javascript] Image height and width
David Dorward
david at dorward.me.uk
Thu Sep 6 11:11:15 CDT 2007
On 6 Sep 2007, at 17:03, Del Wegener wrote:
> Normally the reference to an image on my web pages looks something
> like
>
> <IMG src= ....../images_for_exercises/1_5_2a.gif" width=67 height=31
> align=absmiddle>
>
> If I omit height and width I don't observe any change.
>
> Is there a strong reason for including height and width?
Not a JavaScript reason, but without them browsers can't put place
holders of the right size in position while the images load, so there
will be reflow issues.
You do seem to be missing the mandatory alt attribute though: http://
htmlhelp.com/feature/art3.htm
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
More information about the Javascript
mailing list