What is the purpose of adding alternative text alt text to an image in your document

Alt text (alternative text) is a word or phrase that can be inserted as an attribute in an HTML (Hypertext Markup Language) document to tell Web site viewers the nature or contents of an image. The alt text appears in a blank box that would normally contain the image. Alt text is useful when an image link is not available because of a broken or changed URL or some other issue.

An alt attribute starts out with the character sequence alt= and then contains the alt text within quotation marks. For example, the attribute alt="Storm Surge" might appear in the HTML image tag for a photograph of high water during a hurricane. In most browsers, hovering the pointer over an image containing an alt attribute will cause the alt text to appear within a small box beneath the pointer.

When choosing alt text, it's important to ensure that it tells viewers as much as possible about the image, using as few words as possible. This consideration becomes increasingly important as images get physically smaller. If the alt text is too long, it might take up too much space to fit inside the image rectangle (which is the same size as the image would be if it were visible). With bullet links that have external text labels, for example, alt text would only cause clutter. In cases of that sort, the alt text can comprise a single space between the quotes (alt=" ") or the two quotes can be placed right up against each other (alt="").

Alt attributes should always go inside image tags, even if no alt boxes are wanted. If the Web page author does not want an alt box to appear in conjunction with an image, a blank alt attribute should be inserted in the image tag to ensure that a default character sequence showing the image's Web address will not appear when the viewer hovers the pointer over the image.

Alt text is a good place to place relevant keywords to improve your website’s search engine optimization (SEO). As with text elsewhere, however, keyword stuffing -- the practice of inserting a large number of keywords into Web content -- is discouraged. According to Google, the practice is not only unethical but also ineffective.

This was last updated in October 2012

What is an alt-text?

Alternative text descriptions or alt text are text equivalents for non-text elements in a document. The key principle is that computers and screen readers cannot analyze an image and determine what the image presents. For users who rely on screen readers to understand documents, alt texts ensure that they receive the same relevant information that a sighted person receives.  This ensures their overall online experience is just as informative and relevant.

Alt texts are applied to non-text elements such as:

  • Images / Photos
  • Charts
  • Diagrams
  • Icons
  • Infographics
  • Graphic Advertisements
  • Tables (especially holding critical data)
  • Lengthy URLs (that are too long or complicated to be read out character by character)
  • Forms
  • And more.

Unfortunately, there remains a large majority of images available out there that have missing, incorrect, or poor alternative text.

How to write an alt-text

Alternative text can be presented in two ways:

  • Within the alt-text attribute of the not-text element (defined either in the authoring tool, or the resulting accessible tagged PDF)
  • Within the content surrounding the image, such as a caption or actual text. The caption or surrounding content should provide a suitable description of the non-text element.

An alt-text should typically:

  • Accurately present an equivalent  description of the content and function of the image.
  • Be concise. Don’t be overly wordy. A short sentence should usually suffice.
  • Don’t repeat the same information as text within the context of the image.
  • DO NOT use the phrases “image of …” or “graphic of …” to describe the image. It usually apparent to the user that it is an image. If the image is conveying content, it is typically not necessary that the user know that it is an image that is conveying the content, as opposed to text. If the fact that an image is a photograph or illustration, etc. is important content, it may be useful to include this in alt-text description.

Adding alt-text for tables, charts & graphs

The Web Content Accessibility Guidelines recommends that data tables include a summary of the information presented. The purpose is to give a brief orientation to the structure and purpose of the table. This orientation information provides valuable context for the user who is about to be presented with an array of data. Screen readers accommodate this by announcing the text of that summary attribute as the user enters a table.

Graphs and charts are similar to images in the sense that the the data they present can not be read the same way was it can with a table. A summary should still be provided so that the information conveyed by them is available to the user. A summary of a graph or chart might include things like a data trend or an average value etc.

When do you need add alt-text?

Often many non-text elements within a document that are simply used for layout, visual decoration or do not provide the document user with any useful information or context. Stock photography and clipart images usually fall into this category. Providing descriptions such as “a  blue swoosh logo” or “Woman working on a computer” is useless. These elements do not require alt-texts and can be marked as decorative so they are ignored by screen readers.

How to add alt-text in Word

  1. Open the word document and right click on the image and select Format Picture.
  2. If it is not already selected, choose the ‘Layout and Properties’ icon and click on alt-text.
  3. Provide a title (optional) and a succinct alt-text description.
  4. To add a caption, select the desired image or graphic, right-click then go to “Insert Caption…”

How to add alt-text in Powerpoint

  1. Right click on the image and select Format type.
  2. Select Size and Properties.
  3. Click on Alt Text.
  4. Provide a title (optional) and a succinct alt-text description

Include captions and/or summaries for tables, charts, figures, diagrams or graphs where required.

Need help adding alt-text?

If your documents contain any non-text elements, you can check with your publishing software manuals for instructions on how to add alt-texts. Alternatively, you can contact us for direction. If you would like us to add the alt-texts into your document for you, please download our alt-text template and complete the form.

You may also like to check out our article on Accessible Document Design, or download our Quick reference checklist for Accessible Document Design.

What is the purpose of adding alternative alt text to an image in your document?

Alt Text helps people with visual impairments understand pictures and other graphical content. When someone uses a screen reader to view documents, they will hear Alt Text; without Alt Text, they will only know they've reached a picture without knowing what the picture shows.

What is the purpose of alt in images?

The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

Toplist

Neuester Beitrag

Stichworte