A `sitemap.xml` file is an XML document that provides search engines with information about the pages on your website. It helps improve the visibility of your site in search engine results. Below is a simple structure of a `sitemap.xml` file:
```xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-10-01
yearly
0.8
http://www.example.com/contact
2023-10-01
yearly
0.5
```
Here’s a breakdown of the elements used:
- <urlset> - The root element of the sitemap.
- <url> - Contains information about a specific page.
- <loc> - The URL of the page.
- <lastmod> - The date when the page was last modified.
- <changefreq> - The frequency with which the page is likely to change.
- <priority> - The priority of the page relative to other pages on the site.
Using a `sitemap.xml` can help search engines index your site more effectively and improve the chances of your pages appearing in search results.