What exactly is the intended use of the alt
attribute on <img>
tags?
Should it describe the image, or should it provide meaningful replacement text for screen-readers (and people who have images turned off)?
For example, if I have a short biography of a person on my website, and include a small photo of them, is it really meaningful to visually impaired users to have "Photo of John Smith" read out to them?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…