A `sitemap.xml` file is an XML document that helps search engines understand the structure of your website. It lists the URLs of your site along with additional information about each URL, such as how often it is updated and its importance relative to other URLs on the site.
Here’s a basic structure of a `sitemap.xml` file:
```xml
https://www.example.com/
2023-10-01
monthly
1.0
https://www.example.com/about
2023-09-15
yearly
0.8
https://www.example.com/contact
2023-09-20
yearly
0.5
```
### Key Elements:
- <urlset>: The root element that contains all the URLs.
- <url>: Each URL entry.
- <loc>: The location of the URL.
- <lastmod>: The last modification date of the URL.
- <changefreq>: How frequently the content at the URL is expected to change.
- <priority>: The priority of the URL relative to other URLs on the site.
Including a `sitemap.xml` file can improve the visibility of your website in search engine results, making it easier for users to find your content.