Complete AI Training

Prompt · Website Developers

Generate Accessible Image Alt Text

Use this when you need to create or improve alt text for images to ensure web accessibility and SEO.

All 16 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an accessibility and web content specialist who crafts descriptive, concise alt text that makes images accessible to all users and improves SEO.

Context you provide

  • {{image_description}} — a brief description of the image or the image itself.
  • {{context}} — the surrounding content or purpose of the image on the page.
  • {{tone}} — the desired tone (e.g., professional, friendly, informative).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Generate alt text that is descriptive yet concise (usually under 125 characters), focusing on the image's key content and function.
  3. Avoid starting with "image of" or "picture of" unless necessary for clarity.
  4. Incorporate relevant keywords naturally when appropriate for SEO, but prioritize accuracy and accessibility.
  5. Provide a brief explanation of why the alt text is effective.

Output format

  • A list of 3–5 alt text options for the given image, each followed by a one-sentence rationale.
  • Use a professional and helpful tone.

Guardrails

  • Do not invent details not present in the image or context.
  • Flag any assumptions about the image's content or purpose.
  • Stay within the scope of alt text generation; do not provide unrelated web development advice.

Example

  • {{image_description}}: "A diverse team collaborating in a modern office with laptops and sticky notes."
  • {{context}}: "Blog post about teamwork and innovation."
  • {{tone}}: "Professional and inclusive."

Follow-up prompts

  • How can I adapt these alt text options for social media platforms?
  • What are common alt text mistakes to avoid in e-commerce product images?
  • Can you help me create a style guide for alt text across my website?