Click to See Complete Forum and Search --> : Cleaning up help
motuiti
05-04-2007, 12:14 PM
These lines
<A HREF="AE0003.jpg"><IMG SRC="AbEsX3.jpg"border=0></A><BR>
Concrete texture 1<BR>
<BR>
<A HREF="AE0004.jpg"><IMG SRC="AbEsX4.jpg"border=0></A><BR>
Concrete texture 1<BR>
<BR>
Gets this W3 Error but I cant figure out why
Error Line 48 column 50: required attribute "ALT" not specified.
<A HREF="AE0003.jpg"><IMG SRC="AbEsX3.jpg"border=0></A><BR>
Charles
05-04-2007, 12:25 PM
The validator should have also given you a link for more information but see http://www.w3.org/TR/html401/struct/objects.html#adef-alt . That's no small error there.
ryanbutler
05-04-2007, 12:36 PM
You haven't specified ALT in the image tag.
motuiti
05-04-2007, 01:39 PM
Is there a way to post ALT once rather than add to all my IMG files?
you have to add ALT to each IMG attribute
Charles
05-04-2007, 02:17 PM
It's extremely important that you see http://www.w3.org/TR/html401/struct/objects.html#adef-alt .
ryanbutler
05-04-2007, 05:13 PM
Yes, you need to specify the ALT for each image unless its a spacer, then you can leave the alt text as a null string.
Charles
05-04-2007, 06:02 PM
There's a bit more to it than that. See http://www.w3.org/TR/html401/struct/objects.html#adef-alt .
ryanbutler
05-05-2007, 11:21 AM
There's a bit more to it than that. See http://www.w3.org/TR/html401/struct/objects.html#adef-alt .
Pardon the tone, but I'm not an idiot when it comes to web development. I pointed that out to the original poster. Next time, instead of posting links to further reading for people who are asking for help on these forums, take a moment to actually help them and then point them to further reading or at least read what other people are replying back to.
Centauri
05-05-2007, 11:31 AM
Is there a way to post ALT once rather than add to all my IMG files?
If your images are applied as backgrounds via the css (where presentation should be kept), then you don't need the alt tag at all.
Cheers
Graeme
motuiti
05-05-2007, 12:08 PM
MY site it a travelogue which has a lots of click to enlarge picts. The ALT code is omitted (probably due to the old program I use). I notice this lack of the ALT cod on many many of other sights too. Yes maybe the folks who turn off their picts wont know what they are missing so my site isn't for them anyway.
Is there a good reason why I and the multitude of other sites I've viewed should bother with the ALT code at all? Some here seem to feel strongly that it is.
Sandy
WebJoel
05-05-2007, 01:03 PM
alt="description" on images is for the visually impaired, text-to-speech readers and braille output machines. Leaving alt="" out of images denies a large segment of the population any meaningful content. Basically, -a tour agency that discriminates against the blind(?). Think of buying a newspaper and getting home with it to discover that whole sections in the middle are without print. You know that there are pages there, -but you cannot read/see anything.. That is what blind/visually-disabled people face when visiting a site that fails to have even basic Accessibility s.508 requirements/recommendations. Government and state agencies are coming into compliance with laws regarding handicap discrimination, and would face possible lawsuits if they do not. And it's such a easy thing to implement even a little bit. And bonus, -meaningful alt="" on all non-presentational images (such as list-item bullets, little ornament icons like Mexican hats or red/white beachball, etc) might help the searchability of a site. Someone seeking "Caribbean vacation" might land upon a site that not only caters to vacation booking, but has a few examples in image form (with meaningful alt="" text), describing the image succintly and fully: e.g. "Beautiful Cozumel off the coast of the Yukatan Pennisula and the Mexican Riveria is a haven for sun-starved winter vacationers". With that description alone, I'd hardly require an actual photograph to envision what it must be... :)
motuiti
05-05-2007, 01:25 PM
OK, I can see the perspective you are coming from and I am not without feeling in that regard.
One question remains. On MY click to enlarge picts the description is already underneath, so this seems a bit redundant.
Then to be "Correct" with my coding I would need another ALT for the enlarged pict too - Yes?
ryanbutler
05-05-2007, 02:59 PM
Yes.