Answered by
Oliver Hall
"Alt text," or "alternative text," is an attribute added to an HTML tag on a webpage. It provides a text description for an image, which can be read by search engines and screen readers used by visually impaired individuals.
Having effective alt texts not only boosts your website's accessibility but also improves your SEO performance as it gives search engines more context about your page. Here are some examples:
alt="blue leather sofa"
. This directly describes the image and is also a keyword that users may search for.<img src="blue-leather-sofa.jpg" alt="Blue leather sofa">
alt="TechBits logo"
.<img src="techbits-logo.png" alt="TechBits logo">
alt="Promotion - 50% off on all products"
.<img src="promo-banner.jpg" alt="Promotion - 50% off on all products">
alt="One of the best beaches in Florida"
.<img src="florida-beach.jpg" alt="One of the best beaches in Florida">
Remember, the purpose of alt text is to describe the content of the image to those who can't see it and to help search engines understand the context. Keep it concise, yet descriptive, and avoid keyword stuffing as it could be penalized by search engines.