Implement computer vision solutions 3.2 Design and implement multimodal understanding workflows

An agent uses a vision model to write alt text for a web app's icon-only buttons and…

Study guide skill: Configure generation of alt-text and extended image descriptions aligned to accessibility guidelines

Question B7-006

An agent uses a vision model to write alt text for a web app's icon-only buttons and links. For the settings button, which shows two gears and has no text label, it wrote: 'Button: image of two interlocking gears, one larger than the other.' Which two rules from Microsoft's alt text guidance should the prompt enforce? (Choose two.)

Select 2 answers.

  • A For an image-only button or link, describe what the control does, for example 'Open user settings.' ✓ Correct answer
  • B Use the image's file name, such as settings-gears.png, so the alt text stays consistent
  • C Describe every visible detail of the icon so screen reader users get the full picture
  • D Repeat the image's caption in the alt text so both carry the same message
  • E Don't start alt text with words such as 'Button', 'Link', or 'Image', because screen readers already announce them ✓ Correct answer

Answer: A, E

When a button or link has an image but no text, its alt text should say what the control does, not what the image shows. Alt text shouldn't start with 'Button', 'Link' or a general word like 'Image', because screen readers already announce those. The guide also says not to use file names, that good alt text isn't about describing every detail, and that alt text and captions shouldn't be redundant.

Deep dive

How it works

Alt text replaces an image for people who can't see or process it, and Microsoft's style guide says its goal is an equivalent experience. Good alt text conveys the image's purpose accurately but concisely. It takes interpretation and judgment, not a description of every detail.

Icon-only buttons and links follow their own rules:

  1. If a button or link has an image but no text, the image must have alt text.
  2. That alt text should say what the control does, not what the image shows.
  3. Don't start with "Button" or "Link", because screen readers already announce buttons as buttons and links as links.

The style guide's own example is the question's scenario. For a settings button shown only as two gearwheels, the right alt text is "Open user settings." The wrong one is "Image of two interlocking gears, one larger than the other," because users won't know what the button does. The general guidelines add the matching rule for images: don't start alt text with a general word like "Image," because screen readers already announce images.

So the agent's draft breaks both rules: it starts with "Button:", and it describes the gears instead of the action. A prompt that enforces "describe the action" and "no Button/Link/Image prefix" fixes it.

The other options, and when you'd use them

  • Use the image's file name: The guide says not to use the file name as alt text.
  • Describe every visible detail: The guide says good alt text isn't about describing every detail. For controls, the action matters more than the picture.
  • Repeat the image's caption: If an image has a caption, the alt text and caption shouldn't be redundant. Also avoid just repeating the surrounding text.

Exam tip

For icon-only controls, write the action ("Search this site.", "Open user settings.") and skip the role word. Decorative images get null alt text (alt=""), not a missing attribute.

References

Last reviewed:

Ready to test yourself? The quiz asks this and every other AI-103 question, with instant feedback. Practice this in a quiz →

All Computer vision questions · AI-103 study guide

Thanks for your feedback!