Thread: alt tags needed?
alt tags needed? 25 Dec 2008 @ 20.50
Someone mentioned to me once that images had to have an alt because if not then they would not pass the css validtion test, is this true? if not, did they mean they had to have an id like this id="image1" or could you get away with just using alt=""? I just hate it when you put your mouse over a banner and it says something like 'menu right' it just kinda annoys me :shades_smile:
25 Dec 2008 @ 21.15
it should be done with alt="my tag" but it does not have to be done with css rendered images, just those that are directly in the html
25 Dec 2008 @ 21.26
CSS rendered image? you just mean like backgrounds?
25 Dec 2008 @ 21.28
yup thats what I mean, sorry lol..
25 Dec 2008 @ 21.31
Althought I could apply the alt tag and use JS to stop it from showing, hmm. Maybe it would work :P Cheers for the quick reply mate
25 Dec 2008 @ 21.56
no problem.. hope it helped
27 Jan 2009 @ 13.46
The reason you should be using them is for people using screen readers, as people using these are genreally blind and the image alt will be read out by the screen reader. It's more of an accesibilty and usability issue than a CSS issue but at the end of the day it's good practice.
I would also suggest placing a full stop at the end, otherwise the reader won't pause, and what i would use normally is something along the lines of 'alt="Image: displaying a landscape view of a river"' This will also be use full for people browsing in text based browsers.
27 Jan 2009 @ 13.49I would also suggest placing a full stop at the end, otherwise the reader won't pause
- Join Date
- Dec 2008
- Blog Entries
- By ljackson in forum General Design & Development IssuesReplies: 33Last Post: 17 Dec 2009, @ 22.00
- By Wrams in forum HTML & CSSReplies: 11Last Post: 18 Oct 2009, @ 18.04
- By Michael in forum SEO (Search Engine Optimisation) & Search EnginesReplies: 5Last Post: 8 Feb 2009, @ 00.33