[thelist] Site check please

Christian Heilmann codepo8 at gmail.com
Sat Sep 17 01:28:24 CDT 2005


> img id's - not familar with with the name of images - why is this
> necessary? you have extra info on the img but not the href's
> 
> eg
> 
> <a href="cu_contactus.shtml">
> <img id="bot_contact_us" src="images/bot_contact_us.gif" alt="Contact Us"></a>
> 
> but most imgs appear to have alt's but not href - is this a new thing to alt the img but not the href
> 
> confused there.
> 

I'd venture to say terribly confused.
1) You don't alt or href things, you "add an alternative text should
the image not be available or the visitor cannot see it" and you
"point a link to a destination". If we use English (or other
languages) to explain what attributes _do_ instead of what their names
are developers and editors will realise why they are necessary, and
not because of some arbitary technical reason like "otherwise the
validator fails".

2) Links don't have an alternative text attribute - alt - as they are
normally text. If the link is around an image, the image's alternative
text becomes the link text. They can have a title though, explaining
what the link's destination document is about.

3) IDs on images can be necessary to allow for quicker scripting
support, or extra styling, most of the time they are redundant though.

http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/

http://www.456bereastreet.com/archive/200508/html_tags_vs_elements_vs_attributes/




-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/


More information about the thelist mailing list