Chapter 1: What a sitemap does, and what it doesn’t
A list of pages you consider important, not a guarantee.
A sitemap is a file that lists the pages on your site you think are important, so search engines can crawl it more efficiently. Google says (opens in a new tab) it helps them discover URLs, but doesn’t guarantee that everything listed will be crawled and indexed, and that a small, well-linked site may not need one at all. Large sites, new sites with few links, and sites with lots of media benefit most.
Google’s guide to building one (opens in a new tab) asks for the URLs you want to see in its results, as fully-qualified, absolute URLs, and notes that it generally shows canonical URLs. That is why the sample above checks status, redirects and noindex. The lesson on getting indexed by Google and Bing covers submitting it.