Images and other graphical content must include alternative text to make visual content accessible to people with vision impairments.
Alt text is a short written description of an image that describes the appearance, content and/or function of an image. Screen readers read the alt text aloud to website visitors, allowing them to understand the content of the image.
For example, this image has alt text that reads "University at Buffalo logo."
Alt text should be concise and meaningful, and ideally no more than 150 characters. Be sure to put a period at the end of the alt text.
Images that convey no meaning and are purely decorative do not need descriptive alt text, but they do require null alt text. In the UBCMS, check the box that says "This image does not require alt text." In HTML, use the null alt attribute (alt="") with the image element.
For images that are used to initiate an action or link to another page, the alt text should describe the function of the image. Avoid including the words "link to".
It is possible to use generative artificial intelligence (GAI) to help you write alt text. Please remember that the text generated may not correctly or appropriately, describe your image, especially in the context of your webpage or document. Any alt text you generate with AI must be reviewed for accuracy and edited prior to publishing.
Here are two sample prompts you can try: