A `sitemap.xml` file is a structured XML document that helps search engines understand the organization of your website's content. It provides a list of the pages on your site, including important metadata such as when a page was last updated and how often it changes.
Here’s a simple example of what a `sitemap.xml` file might look like:
```xml
http://www.example.com/
2023-10-01
daily
1.0
http://www.example.com/about
2023-09-15
monthly
0.8
http://www.example.com/contact
2023-09-20
yearly
0.5
```
### Key Elements of a Sitemap:
- <urlset>: The root element that contains all the URLs.
- <url>: Each individual URL entry.
- <loc>: The location of the page (URL).
- <lastmod>: The date the page was last modified.
- <changefreq>: How frequently the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: The priority of the URL relative to other URLs on your site (value between 0.0 and 1.0).
Having a well-structured `sitemap.xml` can improve your website's SEO by helping search engines crawl and index your content more effectively.