A `sitemap.xml` file is an XML file that lists the URLs of a website, helping search engines like Google to better crawl and index the site. Here’s a simple structure of what a `sitemap.xml` file looks like:
```xml
http://www.example.com/
2023-10-01
monthly
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.xml` include:
- <loc>: The URL of the page.
- <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 page relative to other pages on your site (range 0.0 to 1.0).
Including a `sitemap.xml` file helps improve SEO by ensuring search engines can efficiently find and index all important pages on your site.