Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should i repeat person name in alt text of <img> if name is already in source under image?

if I'm already having person name under/over image then should i use same name in ALT text?

alt text http://easycaptures.com/fs/uploaded/227/6990285751.jpg

<p><img width="125" height="157" alt="George Washington" 
src="media/gw.jpg"><span>George Washington</span><p>


<p><span>George Washington</span>
<img width="125" height="157" alt="George Washington" src="media/gw.jpg"><p>

Should i repeat <span> in alt in both condition ? image has no link.

like image 996
Jitendra Vyas Avatar asked Jan 27 '10 05:01

Jitendra Vyas


1 Answers

Yes.

ALT Text is important for screen readers and such. Text 'nearby' to an image doesn't have much meaning to these programs.

Some more information from W3C on the subject.

like image 168
kervin Avatar answered Sep 19 '22 18:09

kervin