whether an alt-attribute (and a title-attribute) is created at all, and if it's empty or what it contains, appears to be completely inconsistent between different ways of including images (thumb,framed,frameless,etc): http://de.wikipedia.org/wiki/Benutzer:Raymond/alt.
The alt-attribute (and the title attribute on the link surounding the img) are used by screen readers to convey the image's meaning to people who can't see them. There are three cases to consider:
- the image is part of the content. In that case, the image caption is what the user needs to know. However, it should be presented only once - not as alt, title, and visible caption below the image. Otherwise, screen readers etc would read it twice or even three times.
- the image is functionla/navigational. This is true for many images in the user interface, and some in the content. The latter would have a link= attribute, specifying where a click on the image should lead. In this case, the alt-attribute should probably be empty, but the title-attribute of the link should inform the user of the link's target. There should however be a way to explicitly specify the alt-text of the image.
- purely decorative images, e.g. shadows in the skin, parts of pretty buttons used in the fundraising banner, etc. These should probably have an empty alt-attribute, since they can and should be ignored by text-only interfaces. HTML5 recommends: "As a last resort, implementors should either set the alt attribute to the empty string, under the assumption that the image is a purely decorative image that doesn't add any information"
Finding a good solution for this needs some careful considerations. However, the goal should be to have consistent behavior that results in the relevant information being conveied to the user in a non-redundant way.
This report results from feedback from the German Central Library for the Blind
(DZB). Please see
https://www.mediawiki.org/w/index.php?title=Accessibility&oldid=383483#Feedback_from_the_DZB,_June_2010
for some background.
Version: 1.17.x
Severity: normal
URL: http://de.wikipedia.org/wiki/Benutzer:Raymond/alt