rel-sitemap: Difference between revisions
(→Details: more words) |
|||
Line 13: | Line 13: | ||
==Details== | ==Details== | ||
The relation appears within the HEAD section of the HTML document: | The <code>sitemap</code> relation may be used with <code>link</code> elements. It refers to an external resource conforming to the standard defined at http://www.sitemaps.org/protocol.html. | ||
<link rel="sitemap" href="/sitemap.xml"/> | |||
It appears within the HEAD section of the HTML document: | |||
<head> | |||
<title>...</title> | |||
<link rel="sitemap" href="/sitemap.xml" /> | |||
</head> |
Revision as of 03:44, 21 August 2012
Introduction
From http://www.sitemaps.org/ :
Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site.
Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata. Using the Sitemap protocol does not guarantee that web pages are included in search engines, but provides hints for web crawlers to do a better job of crawling your site.
The structure of the XML document, and the sitemap protocol in general, is defined at http://www.sitemaps.org/protocol.html
The sitemap relation extends the protocol to allow each web page in a site to link back to its associated sitemap, instead of using a more general technique such as robots.txt
Details
The sitemap
relation may be used with link
elements. It refers to an external resource conforming to the standard defined at http://www.sitemaps.org/protocol.html.
It appears within the HEAD section of the HTML document:
<head> <title>...</title> <link rel="sitemap" href="/sitemap.xml" /> </head>