validating errors
Posted: Fri, 2005-06-10 10:56
Hi
When validating my HTML page at http://validator.w3.org/ one of the errors that is repeated over and over is:
-----
Line 17, column 62: required attribute "ALT" not specified
... <TD> <IMG SRC="images/spacer.gif" WIDTH=113 HEIGHT=1></TD>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
-----
(obviously line and column info changes), also the > after HEIGHT=1 is coloured red.
i have tried removing all the spacer images too, but it only removes the entire banner picture at the top.
the thing is i have no idea what this actually means can someone help.
my site is a mixture of tables and css at the moment (although i am trying to get rid of the tables and use entirly CSS, but i dont have the knowledge yet


Moderator
Posts: 9209
Joined: 2004-06-30
Location: Milton Keynes
validating errors
Posted: Fri, 2005-06-10 11:23
alt = alternate image text.
For spacers, use this:
<img src="blah.gif" alt="">
Elder
Posts: 1075
Joined: 2004-02-16
Location: London
validating errors
Posted: Fri, 2005-06-10 11:25
Which doc type are you validating against?
The obvious thing is you don't have an alt attribute on the img tag and it's not closed.
<IMG SRC="images/spacer.gif" WIDTH=113 HEIGHT=1 alt="" />
Moderator
Posts: 9209
Joined: 2004-06-30
Location: Milton Keynes
validating errors
Posted: Fri, 2005-06-10 12:01
Also, you need to wrap the height and width declarations in "quotation marks"
Leader
Posts: 102
Joined:
Location: philippines
validating errors
Posted: Sat, 2005-06-18 18:07
cheers people, i put in the alt tag and all is ok now
Moderator
Posts: 5307
Joined: 2005-02-03
Location: Pennsyltucky, USA
validating errors
Posted: Sun, 2005-06-19 02:40
A spacer gif? Inside of a table element? Hrump!!! [-X