SEO: Search Engine Optimization Bible

(Barré) #1
TABLE 16-2

XML Tags Used for Site Mapping


Tag When Used Description

<urlset> Required all the time This tag encapsulates the file and references the current protocol
standard.
<url> Required all the time This is the parent tag for each URL entry. The remaining tags are
children of this tag.
<loc> Required all the time This is the URL of the page. This URL must begin with the http
protocol (http://) and end with a trailing slash, if your web
server requires it. The length of the URL must be less than 2,048
characters.
<lastmod> Optional, only when The date of last modification of the file. This date should be in
needed W3C Datetime format (see: http://www.w3.org/TR/NOTE-
datetime). This format allows you to omit the time portion, if
desired, and use YYYY-MM-DD.
<changefreq> Optional, only when This tag indicates how frequently the page is likely to change. This
needed 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. Please note that the value of this tag
is considered a hint and not a command. Even though search
engine crawlers consider this information when making decisions,
they may crawl pages marked “hourly” less frequently than that,
and they may crawl pages marked “yearly” more frequently. It is also
likely that crawlers will periodically crawl pages marked “never” so
that they can handle unexpected changes to those pages.
<priority> Optional, only when This tag indicates the priority of this URL relative to other URLs on
needed your site. Valid values range from 0.0 to 1.0. This value has no effect
on your pages compared to pages on other sites, and only lets the
search engines know which of your pages you deem most important,
so they can order the crawl of your pages in the way you would
most like.

continued

235


Robots, Spiders, and Crawlers 16


75002c16.qxd:Layout 1 11/7/07 9:55 AM Page 235

Free download pdf