Alt text: Alt (short for ‘alternative’) text is HTML code that allows text to be added to a graphic image. This text will be readable by users who have images disabled in settings, or who hover their pointer above a banner. Alt text is frequently used to add emphasis or prompt click-throughs.

Alt text is most appropriately used for people with visual impairments, people with outdated internet browsers and/or slow internet connetions and also search bots. Adding alt text to a picture can actually make that picture readable to a search bot when it crawls over the page to check content.
What is Alt Text?
Alt text, or alternative text, is a crucial component of HTML that describes the content of an image. It serves as a textual substitute for images, ensuring that users who cannot see the image, whether due to visual impairments or technical issues, can still understand the context and purpose of the image.
For example, if an image depicts a sunset over a beach, the alt text might read "A vibrant sunset over a tranquil beach." This not only aids accessibility but also enhances the user experience by providing context that would otherwise be missed.
Importance of Alt Text for SEO
Incorporating alt text into images is essential for search engine optimization (SEO). Search engines rely on alt text to understand the content of images, which can improve the visibility of a webpage in search results. Properly optimized alt text can contribute to higher rankings and increased organic traffic.
For instance, using descriptive and keyword-rich alt text can help your images appear in image search results, driving more traffic to your site. This practice not only benefits accessibility but also aligns with SEO strategies aimed at improving overall site performance.
Best Practices for Writing Alt Text
Writing effective alt text involves several best practices that ensure clarity and relevance. Alt text should be concise yet descriptive, typically limited to 125 characters. It should accurately convey the image's content while avoiding keyword stuffing, which can lead to penalties from search engines.
For example, instead of using "image of a dog," a better alt text would be "Golden Retriever playing in the park." This not only describes the image accurately but also provides context that enhances user understanding and search engine indexing.
Common Mistakes to Avoid with Alt Text
Many users make common mistakes when writing alt text that can hinder accessibility and SEO efforts. One frequent error is leaving alt text blank for decorative images, which can confuse assistive technologies and impair user experience for those relying on screen readers.
Additionally, overly generic alt text like "image" or "photo" fails to provide any meaningful information. Instead, always aim for specificity and relevance. For instance, instead of "image of a car," use "red sports car parked in a driveway," which gives context and enhances both accessibility and SEO.