Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Will background images get indexed?
-
Will images, loaded via css class, get indexed?
For example something like :
style="background-image: url(https://www.mysite.be/content/dam/homepage-mama.jpg/_jcr_content/renditions/cq5dam.web.2000.9999.jpeg);"
-
On my site there is a gallery made by images embedded as background images.
Google doesn't see them.
-
On a sidenote, if you want to prevent indexation of them you can probably add the URLs in to Robots.txt or disallow a specific folder for those images.
On the flipside, if you want to get them indexed, you can manually link to the images and submit an image sitemap to google with just those particular images. Doing both is better than just one.
-
Quick anecdotal reference - for the 1 site I just checked (which allows CSS to be crawled), no they are not indexed.
However, Google crawls CSS and can load those images when you Fetch And Render inside of GWT I believe, so theoretically they can index them.
Next question is what would cause them to do so (eg inbound links to that image file), but I don't have an answer for that.
-
Unfortunately, "can" and "will" are sometimes two different matters. Google is pretty CSS-savvy at this point, and I'm 98% sure they can index those images. If it's a background image, and depending on how it's set up, they may choose not to, but that's a bit trickier.
Weird question, but do you want it indexed, or not?
Asking around to see if there are any image-SEO experts who can provide a more data-driven answer.
-
Nancy,
Although I am saying this all based on my personal speculation I believe that they will be indexed. I do not know 100% if it will but Google has gotten much better at indexing Java/CSS. As far as if you want these to be indexed I would also take a look at Google's image guidelines for best practice and see if there is something of value in there.
-
Hi Nancy,
This article might be of some assistance - http://stackoverflow.com/questions/25773047/what-will-be-indexed-better-in-search-engines-img-tags-or-background-images-wit
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Does google index html5 tracks (captions) for videos?
If we add the <track> tag next to a html5 video, with a Web Video Text Tracks Format (WebVTT) file for video subtitles / captions will google visit that and index it?
Image & Video Optimization | | ismgadmin0 -
Why are my blog slideshow images not indexed?
I'm managing a design blog hosted on WordPress. Each "design project" article includes a slideshow with additional images (and captions) for the project - these are images and text not found in the article itself. Every slide has the same page path as the article, but a different query param at the end. So if the article is /article the first slide would be /article?slide=1 for example. I'm having two issues: The slideshow images don't seem to be getting indexed. Screaming Frog reports duplicate meta descriptions and title tags for each slideshow page (same meta as article). I want to do what's best overall from an SEO perspective. Having the slideshow images show in Google image search is a must. And having the captions indexed might help too? But I want the Google image results linking to the article and not the individual slideshow pages. And I don't want duplicate meta issues. What's the best thing to do? Submit a sitemap that lists both article and slideshow images? "Rel canonical" the param'd slideshow urls to the base article url (not sure this makes total sense, since slide content is different from the article)? Get rid of slideshow altogether and put images in body? Some combo of these? Hopefully this makes sense. Any thoughts appreciated!
Image & Video Optimization | | theoHP0 -
Optimal Image Size for Website
What is the recommended size for an image on our website? What is the largest image size we can use without being penalised by Google? Thank you.
Image & Video Optimization | | CostumeD0 -
How long should the Image Alt Text be for SEO?
When it comes to creating the alternate text for images, what is the character length that I need stay under to rank well?
Image & Video Optimization | | Ytellsocial0 -
Image ALt Tag in Sliders and Modules (Banner) in Joomla/Wordpress
Is it possible to do SEO for images in Sliders and Banner modules in Joomla? I would like to add ALT tags and Titles for those, if possible.
Image & Video Optimization | | ArthurRadtke0 -
If my keyword have Keyword Difficulty Score 50 to 60 , then what kind of link build for get rank?
hello, i have 21 sites , if my keyword have Keyword Difficulty Score 50 to 60 , then what kind of link build for get rank?
Image & Video Optimization | | Brayvez0 -
Dynamic image serving SEO
We often use images from a dynamic image server, to cater for image asset management, multiple sizes etc. Similar to Adobe's Scene7, although that came out after we chose our product. So widgets.com may have all its images with a URL like myimageserver.com?src=widgets/catalogue/productname.jpg;width=100;height=100;angle=90, instead of widgets.com/images/productname.jpg. A potential client wants to capitalise on traffic from Google image search. We could build an image sitemap, listing the images on each page. What should we place in the image:loc field? The code: myimageserver.com?src=widgets/catalogue/productname.jpg;width=100;height=100;angle=90 Apparently we have to verify the hosting site in Webmaster Tools, but I can't see where. I have a single Webmaster Tools account, where most of our sites are defined. Would I have to verify it for each site using the dynamic imaging program? Love to hear from anyone with solutions for getting images indexed when they are hosted at third-party dynamic imaging programs.
Image & Video Optimization | | ozgeekmum0 -
Getting reviews to stick on Yelp & Google
Do you have any tricks to getting reviews to stick on yelp? Whenever we ask out customers to review us on there their reviews end up getting "detected" as fakes. I have tried it out myself, and the only way i've gotten them to stick is making several reviews of various different local businesses with average ratings and then dropping one in for the client with a better rating. Perhaps this is a little on the blackhat/greyhat side of things. But if our customers are legitimatly trying to review us and it doesn't stick, i don't feel all that bad taking this route, the only real problem is time consumed. What about google? has anyone had any luck gaining more reviews for their client on google?
Image & Video Optimization | | adriandg0