This decision tree describes how to use the alt attribute of the <img> element in various situations. For some types of images, there are alternative approaches, such as using CSS background images for decorative images or web fonts instead of images of text. Does the image contain text? Yes: … and the text is also present as real text nearby. Use an empty alt attribute. See Decorative Images. … a