Forum Moderators: phranque
If you've specified a DOCTYPE that mandates alt attributes for image elements then "technically" you should include one, but I don't know of a user agent (except [validator.w3.org...] ;) that is going to argue about it.
That is the best way to do it. The alt is a required element in HTML 4 and above, so you cannot leave it out; however the specification says nothing about giving the attribute value as a null value. So, by using alt="" you have used alt without having to put some mindless text in the value. Imagine how a blind surfer, using a talking browser, would feel to hear "spacer" read out hundreds of times when looking at your site?