A `sitemap.xml` file is an XML document that lists the URLs for a website along with additional metadata about each URL. This helps search engines like Google to crawl the site more intelligently. Here's a simple structure of what a `sitemap.xml` 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-08-20
yearly
0.5
```
### Key Components of a Sitemap
- <url>: Represents a single URL entry.
- <loc>: Specifies the URL of the page.
- <lastmod>: Indicates the last modified date of the page.
- <changefreq>: Suggests how frequently the page is likely to change.
- <priority>: Indicates the priority of the page relative to other pages on the site.
Using a `sitemap.xml` file is crucial for improving the visibility and indexing of a website in search engines.