Google Image Indexing Tips
This guide contains a few tips on how to make sure your images are indexed by Google.
NOTE: This guide is and will remain a work in progress, because industry standards change fast and new tips or best practices will keep appearing.
Tip #1 - Avoid using CSS to insert images
Google Image Search Does Not Index Images From CSS
Google officials have made this statement. Here is what it means.
By default, Google prioritizes the HTML of a page for indexing. All the tags, headings, and images need to be in their rightful place for your website to be fully SEO compliant.
Images have an <img> tag, a src attribute (from which the image is requested and rendered), and an alt attribute that acts as a fallback in case the src attribute doesn't bring any image. Other attributes are optional (for example, width and height). Example:
<img src="smiley.gif" alt="Smiley face" height="42" width="42">You can also add images with CSS. CSS has various methods for inserting images on a website, such as background: url('image_url'); and background-image: url('image_url');.
However, images inserted through CSS are not indexed by Google, because they lack the attributes that Google looks for when indexing.
If the image is written like this:
<img height="42" width="42">And then you insert the actual image with the following CSS:
img {
background: url('smiley.gif');
}Google can't index this image, even if it exists on your site, because the HTML side of the image doesn't have all the attributes Google looks for (src and alt).
Tip #2 - Make sure your images are enhancing the user's experience
Google analyzes the surrounding content and indexes the image in that context if the image is relevant there.
Google values relevance and quality in search results, so user experience feedback is a strong ranking signal. The more popular an image is and the more clicks it gets, the higher it ranks. Below are a few tips for providing a good user experience with your images:
Make sure your images are good quality and appealing. Choose them the way you would choose a profile picture: it should describe you well and look great.
Overly large image files hurt page load time, but reducing the file size does not mean you have to sacrifice quality. Use an image optimization service. Optimole is a recommended option.
Stock images are usually easy to identify and often feel fake or insincere. Use personal pictures where you can.
