Adding Alt Text

Why Add Alt Text?

Alt text (alternative text or alt tags) provides a description of images for students who use screen readers or those who have visual impairments. It ensures that all learners can understand the content, even if they canโ€™t see the image. Alt text is also helpful if an image fails to load, giving context to users about what the image represents.

What Makes Good Alt Text?

  • Concise and Informative: Alt text should provide a brief description of the imageโ€™s content or function.
  • Avoid Redundancy: Donโ€™t repeat information already provided in the surrounding text.
  • Focus on Purpose: Consider why the image is included and what information is essential for the student to grasp.

How to Create Effective Alt Text

Describe the Imageโ€™s Content

  • Describe what is in the image and focus on its essential elements. It may be helpful to consider how you would describe it to a group of people during a presentation.
  • Example: For an image of a bar chart showing student grades, use โ€œBar chart depicting average student grades by subject.โ€

Keep It Brief

  • Alt text should be clear and succinct. This ensures that screen reader users receive quick and helpful descriptions.
  • Example: Instead of โ€œThis is an image of a bar chart that shows the different grades students received in various subjects over the past semester,โ€ use โ€œBar chart of student grades by subject.โ€

Avoid โ€œImage ofโ€ or โ€œPicture ofโ€

  • Screen readers already identify the content as an image, so thereโ€™s no need to add โ€œimage ofโ€ or โ€œpicture of.โ€ Go straight to describing the key content.
  • Example: Instead of โ€œImage of a graduation cap,โ€ use โ€œGraduation cap representing student success.โ€

Tools and Prompts for Creating Alt Text

Creating accurate alt text is essential for making images accessible to people using screen readers. UM-Flint provides these recommended methods depending on your use case.

For Website Images: Auto-Generate Alternative Text Tool (Recommended)

For all alt text on BlogsIntranetUM-Flint Now, and the main website, use the Auto-Generate Alternative Text tool, which is built directly into WordPress by ITS. This tool is integrated into the media library and block editor, making it the fastest and most consistent way to create accessible image descriptions for university web content.

How to access: When you insert and select an image in the WordPress Media Library, youโ€™ll now see an area on the right side panel titled โ€œAuto-Generate Alternative Text.โ€

Clicking the โ€œGenerateโ€ button prompts the system to analyze the image and generate descriptive alternative text, which will automatically appear in the Alt text field after a few seconds.

For Social Media & Other Digital Media: AI Prompt

For alt text needed outside of WordPress, such as social media posts, email graphics or other digital content, use the following prompt with any AI tool (ChatGPTGoogle GeminiU-M GPTClaude, etc.). This prompt follows WCAG standards for accurate, context-appropriate alt text.

Copy and Paste This Prompt:

You are an accessibility assistant that generates accurate image alt text following these rules:
1. If the image contains text:
- If decorative or repeated nearby โ†’ return an empty string.
- If functional (e.g., icon) โ†’ describe its function.
- If essential text only in image โ†’ include that text.
2. If the image is part of a link or button โ†’ describe the action or destination.
3. If the image contributes meaning:
- If simple โ†’ briefly describe in โ‰ค125 characters.
- If complex (e.g., chart) โ†’ summarize essential data.
- If redundant โ†’ return an empty string.
4. If purely decorative or unclear โ†’ return an empty string.
5. When the word "Twitter" appears in the image, replace it with "X" in the alt text. Output only the alt text as a plain string with no extra formatting.

How to Use

  1. Copy the prompt above and paste it into your preferred AI tool.
  2. Upload or attach your image.
  3. The AI will return appropriate alt text based on the image content and context.

Tip: If the AI returns an empty string, the image is likely decorative and doesnโ€™t require alt text (use alt=โ€โ€ in your HTML or leave the alt text field empty).


Google Lens

Google Lens can assist in generating alt text by identifying objects and extracting text within images. Google Lens is free to use. Hereโ€™s how to use Google Lens on a desktop:

  1. Access via Web Browser: Open Google Images in your web browser and search for the image you want to describe.
  2. Right-Click and Use Google Lens: Right-click the image and select โ€œSearch image with Google Lensโ€ (this option may vary slightly depending on your browser and settings).
  3. Analyze the Image: Google Lens will open a side panel displaying information about the objects and elements within the image.
  4. Craft the Alt Text: Use the โ€œAdd to your searchโ€ field โ€ to write โ€œdescribe this image.โ€ Google AI will write a long description.
  5. Implement on Your Site: Make edits to the description including any verbiage that says โ€œimage ofโ€ฆโ€ Once you are satisfied with the description, copy and paste it into the alt tag area.

Example of how to use Google Lens Alt Text Description

Tip: Using Google Lens on a desktop allows you to easily access and analyze web images without switching devices, making it a convenient choice.

By utilizing tools like the Auto-Generate Alternative Text Tool, AI prompts and Google Lens, you can efficiently create alt text that enhances accessibility for all users, ensuring that your web content is inclusive and compliant with accessibility standards.

Examples of Descriptive vs. Non-descriptive Alt Text

Example 1

Orange tabby cat sleeping on a windowsill.
  • Non-descriptive: โ€œImage of a cat.โ€
  • Descriptive: โ€œOrange tabby cat sleeping on a windowsill.โ€

Example 2

Three students studying together in the library.
  • Non-descriptive: โ€œPicture of students.โ€
  • Descriptive: โ€œThree students studying together in the library.โ€

Tips for Faculty

  • Decorative Images: If an image is purely decorative and doesnโ€™t convey information relevant to the content, mark it as decorative. This way, screen readers will skip it, reducing noise for people.
  • Context Matters: Describe the image in a way that adds value. Think about what you want students to learn or understand from the image.