A `sitemap.xml` file is an XML file that lists the URLs of a website to inform search engines about the pages available for crawling. It helps improve the visibility of a site in search results. Below is a simple example of what a `sitemap.xml` file might look like:
```xml
https://www.example.com/
2023-10-01
monthly
1.0
https://www.example.com/about
2023-10-01
yearly
0.8
https://www.example.com/contact
2023-10-01
yearly
0.7
```
Key components of a `sitemap.xml` file include:
- <url>: Contains information about a single URL.
- <loc>: Specifies the location of the URL.
- <lastmod>: Indicates the last modification date of the URL.
- <changefreq>: Suggests how frequently the page is likely to change.
- <priority>: Indicates the priority of the URL relative to other URLs on the site.
Including a `sitemap.xml` in the root directory of your website can help search engines index your site more effectively.