Forum Moderators: phranque

Message Too Old, No Replies

W3C Validation Question

         

rsadik

5:39 pm on Jul 1, 2004 (gmt 0)



Dear Member,

When I try to validate my site <snip>, I get a message, Page not valid html 4.01 Transitional. I checked the errors and there all ALT attribute error for my spacer.gif image(Which is not an actual image).
Question: Is it wisely to add and alt tag to a spacer.gif to get a valid W3C validation. If so would it be search engine friendly.

rsadik

[edited by: Brett_Tabke at 6:11 pm (utc) on July 1, 2004]
[edit reason] please rereview the tos. thanks [/edit]

flood6

5:50 pm on Jul 1, 2004 (gmt 0)

10+ Year Member



I see this thread getting edited in the near future, but to answer your question, don't worry about that error. Just move on.

If you find yourself loosing sleep over it, just use alt="" it will get rid of the errors.

You could use keywords in those tags for SEO purposes if you want. Just don't overdo it.

encyclo

6:07 pm on Jul 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To answer your question, you should add a blank
alt
attribute to your spacer image:

<img src="spacer.gif" width="100" height="100" alt="">

This will allow you to pass validation, and screenreaders will not read out the filename to replace a missing

alt
attribute.

rsadik

6:15 pm on Jul 1, 2004 (gmt 0)



Thank very much,

I shall take your advice on it.

rsadik

[edited by: rogerd at 7:19 pm (utc) on July 1, 2004]
[edit reason] No URLs, please... [/edit]