Creating Good Alt Text

Alternative text provides a description of non-text content in web pages and online documents. This text alternative can be applied to a number of non-text content types, but this entry will focus on images <img> in HTML. The primary audience of this alternative text description are people who cannot see the screen and instead have the content read aloud to them by text to speech synthesizers called screen readers or who use Braille display devices. There are other beneficiaries of this text alternative as well. Without alternative text, the content of an image will not be available to screen reader users or when the image is unavailable.

Consider context.
Especially in narrative works, an image is used in a story's narrative. Creating alt text in narrative works requires an understanding of how the image relates to the work. Think about what aspects of an image would be important to a sighted reader and try to convey them concisely so they fit into the textual narrative. And don't repeat what the text already says.
Use the language, style, names and words of the text.
If the text calls them galoshes, don't describe them as boots. "Pooh carries a pot of hunny", not "a toy bear clutches a jar of honey".
Description is better than interpretation.
Blind people are as smart as you are. If a picture shows a smiling boy in ragged clothes, don't describe him as poor but happy.
Images are there for a reason.
Images typically are there to comunicate something. Alt text should try to communicate the same thing. For example, an image of a scrap of ancient text is not there to communicate the words on the scrap, it's there to convey an impression of the scrap's fragmentary nature. Alt text should focus on that. The caption in the book might tell you what museum it's in, without conveying visual information.
Often, null text is best.
Books often use images as decorations, page breaks, spacers, and the like. These should not have alt text, as it the alt text will just be annoying interruptions. In Altpoet, use the "decorative image" button to indicate that they are better left undescribed. Similarly if an image is part of a figure and the figure label already describes the image, it's usually better not to repeat the description.
Front load the important stuff.
Some screen readers naturally pause after 140 characters with spaces and require a user action to read more. Consider that a definition of “front loading” and put the most pertinent information in that 140-character container.
Use punctuation.
Screen readers take pauses for things commas and periods. Use the same grammar and spelling style guides you use for visually presented text.
Spell check.
Because it is “invisible” it’s easy to make typos in your alt text writing. AltPoet makkes it easy to reviewed and proofread, the work of others (including AIs!).
Don’t game the system.
Since alt text will increase SEO performance, a lot of the training data used for AIs has alt text descriptions with keywords. Alt text is about fairness and inclusion first, last, and always.
Don’t use the terms "graphic" or "image"
Screen readers naturally announce the role of the <img> element in HTML and <figure> tag in PDF by stating “Graphic” or “Image”. Instead, just describe the image as though the user already understands fully that it’s an image. This holds true for all image formats except animated GIFs.
Other types of image
When describing an animated GIF, start (prepend) the description with the term “Animated GIF” or “Animation”. The screen reader will only announce role of “image” so this extra description is useful for non-sighted users. Similarly, the terms "map", "drawing", "graph", and "formula" can be useful, provided that there's more in the description!.
Don’t over engineer it
Some abbreviations will not read “correctly” to your ear when you listen to them with a screen reader. Your first thought may be to engineer it phonetically to read correctly. The term ADA for example can be read aloud like Ada Lovelace instead of the abbreviation for the Americans with Disabilities Act which phonetically is pronounced like Eh Dee Eh. Whereas this approach works well for screen reader users it will not work for Braille display users.