
A sitemap tells Google which pages you want it to know about. Most content management systems create one automatically, which makes it easy to forget what is actually in it.
Three formats
XML is the most versatile and can carry extra information about images, video, news and localised versions of pages. RSS, mRSS and Atom feeds are often generated by the CMS and can also describe video. A text sitemap is the simplest and can list only HTML and other indexable text pages. Google has no preference between them.
An HTML sitemap is different
A regular page that links to your important pages can help visitors and search engines, but it is not a format you can submit in Search Console.
Limits and location
A single sitemap is limited to 50MB uncompressed or 50,000 URLs, and larger sites split into several. The file must be UTF-8 encoded. Unless you submit it through Search Console, a sitemap affects only the directory it sits in and below, so the site root is the recommended place.
What to list
Use fully qualified, absolute URLs, because Google tries to crawl them exactly as written. List the URLs you want to see in results, which are usually the canonical versions. If you have separate mobile and desktop URLs, point to one version.
A routine
Open the sitemap once a quarter. Check that new pages are there, that redirected or deleted pages are not, and that nothing set to noindex has slipped in.
Source: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap. This article combines the linked guidance with editorial workflow advice; it is not a certification or a promise of business results.
Explore the Pixeleator portfolio or discuss your website project.