Skill 3.2.4

Configure generation of alt-text and extended image descriptions aligned to accessibility guidelines

Key Concepts

The Web Content Accessibility Guidelines (WCAG) require a text alternative for meaningful images. Alt text conveys the image's purpose in its context in a short phrase, usually under about 125 characters, without "image of" and without repeating nearby text. Decorative images get empty alt text so screen readers skip them. Images of text should reproduce the text. Extended descriptions for charts, diagrams and infographics describe the data or structure in full, often linked from the page.

A generation prompt therefore receives the image and its surrounding context (page title, caption, nearby paragraph) and returns structured output: alt text, an is_decorative flag and, for complex images, an extended description. Generated alt text is reviewed for important images, because the model cannot always know the author's intent, and it must avoid guessing sensitive attributes such as a person's identity.