A `sitemap.xml` file is an XML file that helps search engines understand the structure of your website. It provides a list of URLs that are available for crawling, along with additional information such as the importance of each URL and the last time it was updated.
Here’s a simple example of a `sitemap.xml` structure:
```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-09-20
yearly
0.5
```
### Key Elements of a Sitemap
- <url>: Represents a single URL entry.
- <loc>: Contains the full URL of the page.
- <lastmod>: Indicates the last modification date of the page.
- <changefreq>: Suggests how often the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: Indicates the importance of the page relative to other pages on the site, ranging from 0.0 to 1.0.
Using a `sitemap.xml` can improve the crawling and indexing of your website by search engines, making it easier for users to find your content.