Would you like for your photo to hit the search engines with a higher rank? One way to help your search engine optimization (SEO) is by properly tagging each photo with an “alt” tag, which stands for alternative tag. When Google, Yahoo, Bing, or your personal favorite search engine craws the web for photos, it is unable to fully depict the theme of the photo without an “alt” tag. By including the “alt” tag, the search engine is able to clearly depict what the image is.
Adding a simple “alt” description is a simple task to do. First, take your original image code, <img src=”filename.jpg”/>. Next, add alt following your file name inside the <>, giving you <img src=”filename.jpg” alt=”description”/>. By completing this easy task, you should begin to see your photos rank high on search engines image search.
It provides Google with useful information about the subject matter of the image. We use this information to help determine the best image to return for a user’s query.
Many people-for example, users with visual impairments, or people using screen readers or who have low-bandwidth connections—may not be able to see images on web pages. Descriptive alt text provides these users with important information.
Not so good:
<img src="https://corephp-corephp.netdna-ssl.com/puppy.jpg" alt=""/>
<img src="https://corephp-corephp.netdna-ssl.com/puppy.jpg" alt="puppy"/>
<img src="https://corephp-corephp.netdna-ssl.com/puppy.jpg" alt="Dalmatian puppy playing fetch">
To be avoided:
<img src="https://corephp-corephp.netdna-ssl.com/puppy.jpg" alt="puppy dog baby dog pup pups puppies doggies pups litter puppies dog retriever labrador wolfhound setter pointer puppy jack russell terrier puppies dog food cheap dogfood puppy food"/>
Filling alt attributes with keywords (“keyword stuffing”) results in a negative user experience, and may cause your site to be perceived as spam. Instead, focus on creating useful, information-rich content that uses keywords appropriately and in context. We recommend testing your content by using a text-only browser such as Lynx.
Matt Cutts, head of Google’s Webspam team, created a video in 2007, regarding adding “alt” tags, and his explanation for why one should complete the task is still relevant.
‘corePHP’ Contributing Writer