Even if you don't add alternative text to your images, be sure you're adding either a sentence to introduce the image or an image caption. Captions are generally the easiest way to handle this, but you can use either approach or both. As with alt text, this text provides additional clues and description of what the image contains.
If you forget alternative text, a caption is the next best thing. It's also displayed to sighted readers so it adds even more contextual cues for everyone.
To add a caption to an image, select the image and then select the speech bubble Image Caption button.
Tips for adding captions
Follow these tips for writing a good caption:
- If your image is of a particular step or action, use a simplified version of the step or action as the image caption.
- If your image is an example or sample, use something like "Sample of..." or "Example of..." with relevant details about the configuration or setup that produced it.
📈 RAG benefit of image captions
Caption text is indexed just like regular text in chunks, providing additional contextual clues for the AI Tool.
🌲Accessibility tree benefit of image captions
Caption text is explicitly captured and displayed in the accessibility tree as StaticText associated with the image. If you forget alt text, it's the next best thing since it gets hierarchically grouped with the image.