How does a sitemap work?

Hello friends,

How does a sitemap work?