To create accessible web pages, you need to mark up page elements with information for assistive technologies, such as screen readers. For example, each image on a page should be given a text equivalent, called alternative text (or alt text), which a screen reader conveys to users in place of the image.
Alternative text appears on the image placeholder while the image is downloading from the web; it also substitutes for graphics that fail to download. In some newer versions of browsers, the text appears next to the pointer as a ToolTip.
Adobe® Illustrator® software provides a web graphics production tool for developers to insert alternative text within the design tool itself. The Slice Options panel allows alternative text attributes to be assigned to each individual image slice. With the inclusion of alternative text, images can be interpreted by text-only assistive devices.
W3C reference: Alternative text for images
To specify alternative text for a selected slice, choose Object > Slice > Slice Options from the Illustrator menu to access the Slice Options dialog box.
The alternative text can be added to the Alt field.
The screen reader will anounce the text in the alt tag field to describe the image to the user. Make sure that the alternative text correctly conveys the information contained in the image. If the image is decorative or irrelevant, the alt tag field can be left empty. This will cause an empty alt attribute to be added during export to HTML, which means that the screen reader will ignore the image.
When you export (by choosing File > Save for Web & Devices) or copy HTML from Illustrator, the following code and files are generated so that your Illustrator image can be re-created on a web page:
Selecting Edit Output Settings from the Save for Web & Devices dialog box brings up the Output Settings dialog box where you can tell Illustrator to always add the alternative attribute to the image. If you specified a value in the alt tag field of the Slice Options window, that value will appear in the exported HTML code.
When an image created in Illustrator is used in a web environment, you must ensure that alternative text is applied in your web editing application.
W3C Reference: Using alt attributes on img elements
Get tools and support information for Adobe software and content.
If you have questions or comments or want to get involved with Adobe’s accessibility efforts, contact us. We welcome your feedback.