A `sitemap.xml` file is an XML file that helps search engines understand the structure of your website. It lists all the pages on your site and provides information about each page, such as when it was last updated, how often it changes, and its importance relative to other pages.
Here’s a simple example of what a `sitemap.xml` might look like:
```xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-09-15
yearly
0.8
http://www.example.com/contact
2023-09-20
yearly
0.5
```
### Key Elements of a Sitemap:
- <url>: Represents a single URL entry in the sitemap.
- <loc>: The location of the page (URL).
- <lastmod>: The last modified date of the page.
- <changefreq>: How often the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: The priority of the page relative to other pages on the site (0.0 to 1.0).
Using a `sitemap.xml` can improve your site's SEO by making it easier for search engines to crawl and index your pages.