A `sitemap.xml` file is an XML file that provides information about the pages, videos, and other files on your site, as well as the relationships between them. It helps search engines crawl your site more intelligently.
Here is a basic structure of a `sitemap.xml` file:
```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-08-20
yearly
0.5
```
### Key Elements of `sitemap.xml`
- <urlset>: The root element that contains all the URLs.
- <url>: Represents a single URL entry.
- <loc>: The location of the URL.
- <lastmod>: The last modified date of the URL.
- <changefreq>: How frequently the page is likely to change.
- <priority>: The priority of the URL relative to other pages on the site.
Make sure to update the `sitemap.xml` file whenever you add or remove pages from your site to keep it current for search engines.