Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
If I've got a load of images that are used for decoration, and serve function for my site beside making it look pretty.
Should these images have an alt tag?
Yes, per the XHTML standard. Offers an alternate text description (even if it is only a small decoration-only remark) for those not actually viewing the images. I certainly wish the alt was optional for decorative only images, but then your html will not validate - cost vs benefit?
Excellent. I've always thought that adding alt tags to images that are used for decoration is more of a hiderance than a help to screen readers, so this cheers me immensely
Grim... wrote:If I've got a load of images that are used for decoration, and serve function for my site beside making it look pretty.
Should these images have an alt tag?
Yes. I generally use the blank alt tag:
<img src="blah.jpg" alt=""></img>
Anything but blank, and the screen readers will render it, or worse, announce it. Nothing quite as annoying as hearing "Az-ter-isk" 30 times on a page.
If you don't include the blank alt tag, the screen reader (depending on configuration) will announce the image as "blah dot jay-peg".
Grim... wrote:Stoopid standards.
Stoopid alt tags.
Heh. Well, the alternative (pun intended!) is the old style - no alt tags anywhere, and images that were important - like graphical "Submit" buttons (a huge pet peeve of mine).
Imagine a form that has a submit button, but you can't see it or find it! Annoying is not the word.