Put Images in Your XML Sitemaps Part II – AKA: The Part I left Out.

Images in Sitemaps to crawl them better for image search

Spiders Crawl Image URL's in Sitemaps

If you were left with questions after the last post it was because I never got to give examples of the formatting of images in your sitemap.  Hopefully people just googled it if they were serious, already knew, didn’t care, ad nauseum of reasons, and in case you didn’t we got you covered with this thrilling follow up post.  Taken straight from Google here, this is what the syntax would look like for one page that includes two images.  You can add up to 1,000 images per page by the way, just in case you have a page with over 1k images, you have been officially PWND by Google when it comes to adding all your images on that page to your sitemap, pfffft.

<?xml version=”1.0″ encoding=”UTF-8″?>

<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″

xmlns:image=”http://www.google.com/schemas/sitemap-image/1.1″>

<url>

<loc>http://example.com/sample.html</loc>

<image:image>

<image:loc>http://example.com/image.jpg</image:loc>

</image:image>

<image:image>

<image:loc>http://example.com/photo.jpg</image:loc>

</image:image>

</url>

</urlset>

While this is a boilerplate format, the following is a table, again, taken from Google’s page on including image url’s in your xml sitemaps of what is required and what is optional.  The above example doesn’t include all of the variables listed below.

TagRequiredDescription
<image:image>YesEncloses all information about a single image. Each URL (<loc> tag) can include up to 1,000 <image:image> tags.
<image:loc>YesThe URL of the image.
<image:caption>OptionalThe caption of the image.
<image:geo_location>OptionalThe geographic location of the image. For example, <image:geo_location>Limerick, Ireland</image:geo_location>.
<image:title>OptionalThe title of the image.
<image:license>OptionalA URL to the license of the image.

Technorati Tags: image sitemaps, Sitemaps, xml

    Related Posts:
  • .htaccess File Creator – URL Rewriter Tool Search Engines are known to index static URL’s much quicker than dynamic URL’s. Luckily you can convert dynamic URL’s to static URL’s through something called...
  • Code to Text Ratio Calculator Code to text ratio is important for sites search engine indexation and ease of spiders to access the critical content of your site instead of...
  • Domain Age Check Tool One of the on-site factors that determines both relevance as well as domain strength and trust to a certain degree is based on the age...
  • Check Server Headers Tool This tool will check the header code and information contained within. The following is a list of server response codes and the applicable description. Most...
Get Adobe Flash playerPlugin by wpburn.com wordpress themes