WebAIM - Web Accessibility In Mind

E-mail List Archives

coding attributes for image links

for

From: Robin Brunner
Date: May 5, 2009 1:15PM


Is there a standard for coding
images which are also links?
The alt attribute goes in the <img> tag,
but what about the title attribute?
Sample code:
<a href="hhm.php"
tabindex="4">
<img src="images/hhmlogo.bmp"
width=120 height=128
alt="Helping Hands Logo"
title="Helping Hands Ministry Provides Emergency Financial Assistance and Referrals"/>
</a>
Put the title attribute in
the <img> or in the <a>, or both?
And please say why - e.g. IE's using alt as a tooltip. Or needs an empty title attribute because...
I can't find good direction on which way might yield the most inclusive page.
Thank you!
Robin Switzer Brunner
CompuPlace Director
601 Second Ave SE #3
Cedar Rapids, Iowa 52401-1305
319-362-4284
<EMAIL REMOVED>
www.ecc-cr.net