I'm programming CSS and xhtml 1.0.
I'm wondering if the width/height are necessary for img or can I safely erase them. Will Internet Explorer and Firefox interpret it correctly ?
<img src="pic.jpg" alt="text" width="138" height="200" />
img width/height necessary ?
Moderator: General Moderators
Re: img width/height necessary ?
It'll work, but they really should be there. It'll make the page render faster, and they're a factor in accessibility ratings.
EDIT: Actually.. aren't they required by the XHMTL spec? I use HTML so I'm not sure...
EDIT: Actually.. aren't they required by the XHMTL spec? I use HTML so I'm not sure...
Re: img width/height necessary ?
It's better to have them. Can't remember exactly why, but something with IE and not rendering well or something (what's new)