The HTML (Hypertext Markup Language)specification does not define a maximum length for "alt" attributes. Current versions of the leading screen reader programs have no limits on the amount of alternate text they will read. However, Freedom Scientific® JAWS® 6.x divides the "alt" attribute into distinct chunks of 125 characters each (excluding spaces), and reads them each separately as if they were separate graphics. This behavior, though it ultimately provides access to the entire "alt" attribute, can be confusing for the user. Also, keep in mind that "alt" attributes additionally benefit sighted users who have images disabled in their browser settings, perhaps in order to minimize download time. For these users, if the height and width of an image is specified, both Internet Explorer® and Mozilla truncate the alternate text to fit within the size of the image placeholder. If no image width is specified, Internet Explorer displays the entire "alt" attribute on one line, which may result in a web page that is extraordinarily wide and disorienting.
All of this provides technical justification for keeping the length of "alt" attributes to a minimum, at least shorter than 125 characters in order to avoid JAWS® subdividing it. This simply reinforces a common request from screen reader users: Keep alternate text short and sweet. Alternate text should provide equivalent access to the content of an image, but must do so efficiently in order to avoid burdening screen reader users with extraneous information. For images that require more lengthy descriptions, the appropriate HTML attribute is not "alt" but "longdesc" (short for "long description"), which allows authors to provide a long description of an image on a separate page. This is particularly useful for complex images such as graphs and charts. Screen readers typically announce the presence of a long description when available, and provide users with the option of reading it.
See also What is the current recommendation for providing long descriptions for complex graphics?
Copyright © 2002 - 2009 by University of Washington. Permission is granted to copy these materials for educational, noncommercial purposes provided the source is acknowledged. For more information see the larger AccessIT Copyright Statement. AccessIT was funded by the National Institute on Disability and Rehabilitation Research of the U.S. Department of Education (grant #H133D010306) through September 30, 2006; it is now maintained with funding from the National Science Foundation (grant #CNS-054061S). The contents do not necessarily represent the policies of the U.S. federal government, and you should not assume their endorsement.