![]() | This is an explanatory essay about the Manual of Style accessibility for images guidelines. This page provides additional information about concepts in the page(s) it supplements. This page is not one of Wikipedia's policies or guidelines as it has not been thoroughly vetted by the community. |
![]() | This page in a nutshell: Alternative text allows the content and function of an image to be understood by text-only readers. |
WikiProject Accessibility |
---|
Alternative text (or alt text) is text associated with an image that serves the same purpose and conveys the same essential information as the image.[1] In situations where the image is not available to the reader, perhaps because they have turned off images in their web browser or are using a screen reader due to a visual impairment, the alternative text ensures that no information or functionality is lost.[1] Absent or unhelpful alternative text can be a source of frustration for visually impaired users.[2]
On Wikipedia, alternative text is typically supplied through a combination of the image caption and the text supplied for the image alt
parameter in the MediaWiki markup. The following example produces the adjacent image:
[[File:Jacques-Louis David 017.jpg |thumb |upright=0.75 |alt=Painting of Napoleon Bonaparte|''[[The Emperor Napoleon in His Study at the Tuileries]]'' by [[Jacques-Louis David]]]]
The alt
parameter text ("Painting of Napoleon Bonaparte") is not normally visible to readers; however, it may be displayed by web browsers when images are switched off, or read out loud by screen readers for those with visual impairment, and can be used by search engines to determine the content of the image.[3] In keeping with other Internet guidelines, the term "alt
text" (in a code
font) is used here to refer to the text supplied for the image alt
parameter and which generates text for the HTML alt attribute; the term "alternative text" refers to the text equivalent for an image, regardless of where that text resides.[4]
For images that link to their image description page (which is nearly all images on Wikipedia), the alt
text cannot be blank nor should the alt
parameter be absent. This is because a screen reader, in order to describe the purpose of the link, will default to reading out the image filename when no alt
text is available.[5] This is usually not helpful. In the above Napoleon example, the screen reader would have read out "link graphic slash Jacques hyphen Louis underscore David underscore zero one seven" had we not supplied the alt
parameter.[6]
An image that is purely decorative (provides no information and serves only an aesthetic purpose) requires no alternative text. Often the caption fully meets the requirements for alternative text. However, the only situation where blank alt
text is acceptable is where such images are unlinked, which is rarely possible. One solution is to provide something at least minimally useful such as |alt=photograph
, |alt=painting
, or |alt=sculpture
. Another solution, if a caption doesn't already describe or identify the image, is for the alt
text to do so as briefly as possible.
G94
was invoked but never defined (see the help page).
Lazar2007
was invoked but never defined (see the help page).
WebAIM
was invoked but never defined (see the help page).
alt
attribute. This is because the screen reader must read SOMETHING to identify the link." See WebAIM, Context is Everything, accessed 30 September 2020.
© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search