What is the purpose of the alt attribute on images? Technology Community › Category: HTML5 › What is the purpose of the alt attribute on images? 0 Vote Up Vote Down VietMX Staff asked 4 years ago The alt attribute provides alternative information for an image if a user cannot view it. The alt attribute should be used to describe any images except those which only serve a decorative purposes, in which case it should be left empty.