A `sitemap.xml` file is an XML file that helps search engines index the pages on your website. It provides information about the structure of your site and the relationships between different pages. Below is a simple example 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-10-05
yearly
0.5
```
Here’s a breakdown of the components:
- <urlset>: The root element that contains all the URLs.
- <url>: Each URL entry for the site.
- <loc>: The location (URL) of the page.
- <lastmod>: The last modification date of the page.
- <changefreq>: The frequency with which the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: The priority of the page relative to other pages on the site (scale of 0.0 to 1.0).
Creating a well-structured `sitemap.xml` can enhance your website's visibility in search engine results and help improve SEO.