Mobile app version of vmapp.org
Login or Join
Courtney195

: Will Google index images from HTML select tag If i have code like this: <select> <option value="path/to/image1.jpg">Image 1</option> <option value="path/to/image2.jpg">Image

@Courtney195

Posted in: #Google #GoogleImageSearch #GoogleIndex #Indexing

If i have code like this:


<select>
<option value="path/to/image1.jpg">Image 1</option>
<option value="path/to/image2.jpg">Image 2</option>
<option value="path/to/image3.jpg">Image 3</option>
<option value="path/to/image4.jpg">Image 4</option>
</select>



Will Google index images from the select tag?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

Google scans your source code for items that look like URLs and will try to crawl them and index them, even if they are not in an <a href.

Based on the crawling that Googlebot has done on my site, Google seems to think that strings in the page source are URLs if:


They end in a common page extension such as "html", "htm", or "php".
They contain a slash such as "foo/bar"
They start with "http://" or "https://"


Both the first and second in that list apply to your situtation.

Googlebot seems to look in both javascript variables and option values for items that appear to be URLs. So Google will crawl mypage.html in both of the following senarios:

<option value="mypage.html">My Page</option>

<script>var s = "mypage.html";</script>


I haven't done any specific testing with images, but I would be suprised if Googlebot did not crawl your jpg images given the markup your provided.

You might also do better with SEO with an actual link to your images. Even if Google does crawl and index the images, it is not clear that links found not in <a href= pass pagerank the same way.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme