Search code examples
htmlxhtmlaccessibilityscreen-readers

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.


Solution

  • 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.