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 -
Not using alt tags for decorative images?
Hi everyone, My coworker recently stumbled across this article that instructs you to not to alt text for "decorative images" as you might get penalized you for over optimization https://www.shopify.com/blog/7412852-10-must-know-image-optimization-tips Has anyone heard of this or have any thoughts?
Image & Video Optimization | | AliMac260 -
Is getting views to an infographic through Imgur beneficial to SEO?
I'm considering posting infographics to Imgur in addition to hosting them on my site in an effort to leverage Reddit a bit more this year. My concern is that, if all goes well, we'll get a ton of views through Reddit to Imgur, maybe a couple clickthroughs to the site, and links to (probably) the Imgur page. I don't see that Imgur gives your profile a followed link, so how would any of this help SEO. I assume it would, because respected guys like John Dougherty espouse the benefits of Reddit, but I can't see how and I need to justify the effort to my department head.
Image & Video Optimization | | MattHolden1 -
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 -
Is it a legal requirement for a website to have alt tags for all images?
Someone told me it is a legal requirement for a website to have alt tags on all of their images. Is this right? Or is this bad for SEO?
Image & Video Optimization | | RachelBev0 -
Google maps displaying wrong image
Hi, I couldn't figure this out, how do i change image that shows up on the right side for maps results, do i change it in my Google places account ?(which i did and and its a first one) or in Google plus, i just cant get it? Thanks for help.
Image & Video Optimization | | Davidmez0 -
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 -
SEO for Explicit / Medical Pictures - Will It Hurt Rankings?
I have a client with page 1 rankings for several keywords. He wants to make some updates to his website. He is offering a new service and wants to show before and after photos of the procedure. He is an OB/GYN, so the before/after pictures are very explicit and have full nudity. How will this affect his rankings? Is there something that I can do to tell Google and other SE's that these photos are medical and not pornographic? Should I host them on another domain? Just looking for thoughts and insight. Thank you in advance!
Image & Video Optimization | | itrogers0