When choosing alt text, focus on creating useful, information-rich content that uses keywords appropriately and is in context of the content of the page. Google uses alt text along with computer vision algorithms and the contents of the page to understand the subject matter of the image. Here’s their general advice for writing these: It’s used to show what a well-written alt tag looks like. That example comes straight from Google’s official guidelines. Browsers also display alt text if there’s a problem rendering images.
Alt text (alternative text) describes an image. It’s what the browser displays to users with screen readers.