#SEOTIPS can be well intentioned but are not always complete
I'm talking to the geekier elements of the audience with this post. For the rest I hope to have something for you again soon.
I stop by at Twitter and search the hashtag #SEOTIPS from time to time. You never know what you might find. Mostly I see nothing that interests me - same old same old. This is one I saw today ...
Place an alt tag on every image (gif, jpg, or png) so search engines can understand what the image is. #SEO #SEOTIPS
This is accurate and well intentioned but shouldn't be seen as a complete recommendation. Let's think about why the alt attribute (not tag) is used. If an image is not displayed (either images are turned off, the image has been moved or deleted from the server or the visitor is using a screen reader) the alt text is used to replace the image. So the purpose is to give meaning to the image. But some images have no meaning, they are purely decoration. Thus my reply ..
@seogroup agree the thrust of your alt tag #SEOTIPS, but I suggest empty alt text for images that are purely decoration.
It is true search engines will read the alt text and use it to give context to the image and rest of the content on the page. It will be one of the clues the search engines use to decide to show that image in response to an image search.
My first concern about that tweet is that we shouldn't make decisions about web pages based on what is best for the search engines. The primary users of a web page are the human visitors. They should be the reason we make decsions about the construction and content of a page.
I alluded to my second concern earlier, not all images add meaning to the page they are purely included for design purposes. In these cases the alt attribute should be included but the text should be empty (i.e. alt=""). It should not be the name of the image or the image dimensions (often the defaults in prior generations of web building tools).
When we go looking for tips it is important to look for the complete story before implementing them.
Just in case anyone thinks the alt text is an opportunity to stuff a few keywords. Don't! This is very "spammy". Search engines may ignore the keywords, but they always have the option to penalise the page or the website in the worst cases. It's worthwhile to remember the true intent of the alt attribute. Everyone using a screen reader on the page will get monumentally annoyed by hearing the same keywords repeated relentlessly as they try to consume your content.
The Search Engine Optimisation (SEO) benefits of HTML Validation (midboh.com.au)
photo credit: x-ray delta one via photopin cc