Defining image width + height?
May 29th, 2008
I had an odd conundrum today at work while discussing our latest wireframes with some Greenpeace programmers: when coding a page with images, are the images required to have width and height attributes defined? I know that I usually do this in what I consider to be best practice for modern web design, and I thought most people did, but really…if you don’t define them I haven’t noticed any major rendering issues. This is one of those issues that seems like such a non-issue. How often do we really think about it?
So I asked around internally, and the overall decision was to let the programmer know that image dimensions were NOT necessary in the PHP logo tables he will be generating. This should save him some work as well.
I still feel strange about this, though…what do you think out there, web developer friends?