The alt attribute is an attribute of the img tag and is meant to be an alternative for non-visual browsers when they come across images.
This means, that the text is meant to be used when the image is not visible on the page. Instead, what is displayed (or read) is the alternative text.