A Sitemap.xml is a collection of webpages. The sitemap file allows a webmaster to inform search engines about URL's on a website that are available for crawling. We can submit XML sitemap in search engine webmaster for fast indexing.
Sitemap is of 2 types: HTML Sitemap and XML Sitemap.
The available XML tags are described below:
|<urlset>||required||Encapsulates the file and references the current protocol standard.|
|<url>||required||Parent tag for each URL entry. The remaining tags are children of this tag.|
|<loc>||required||URL of the page. This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2,048 characters.|
|<lastmod>||optional||The date of last modification of the file. This date should be in W3C Datetime format. This format allows you to omit the time portion, if desired, and use YYYY-MM-DD.
Note that this tag is separate from the If-Modified-Since (304) header the server can return, and search engines may use the information from both sources differently.
|<changefreq>||optional||How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Valid values are: always, hourly, daily, weekly, monthly, yearly, never
The value "always" should be used to describe documents that change each time they are accessed. The value "never" should be used to describe archived URLs.
|<priority>||optional||The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value does not affect how your pages are compared to pages on other sites—it only lets the search engines know which pages you deem most important for the crawlers.
The default priority of a page is 0.5.
Please note that the priority you assign to a page is not likely to influence the position of your URLs in a search engine's result pages. Search engines may use this information when selecting between URLs on the same site, so you can use this tag to increase the likelihood that your most important pages are present in a search index. Also, please note that assigning a high priority to all of the URLs on your site is not likely to help you. Since the priority is relative, it is only used to select between URLs on your site.
The following example shows a Sitemap in XML format. The Sitemap in the example contains a small number of URLs, each using a different set of optional parameters.
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.example.com/</loc> <lastmod>2015-01-01</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> <url> <loc>http://www.example.com/gallery.php</loc> <changefreq>weekly</changefreq> </url> <url> <loc>http://www.example.com/catalog.php</loc> <lastmod>2004-12-23</lastmod> <changefreq>weekly</changefreq> </url> <url> <loc>http://www.example.com/contact.php</loc> <lastmod>2004-12-23T18:00:15+00:00</lastmod> <priority>0.3</priority> </url> <url> <loc>http://www.example.com/about.php</loc> <lastmod>2004-11-23</lastmod> </url> </urlset>
Sitemap generator tool are:
Sitemap must be placed in the main folder of a root directory i.e. www.website.com/sitemap.xml