A `sitemap.xml` file is an XML file that helps search engines understand the structure of your website. It provides a list of all the pages on your site, which can improve your site’s visibility in search engine results.
Here’s a simple example 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-10
yearly
0.5
```
Key elements of a `sitemap.xml` include:
- <url>: Encloses information about a single URL.
- <loc>: Specifies the location of the URL.
- <lastmod>: Indicates the last modification date of the URL.
- <changefreq>: Suggests how frequently the page is likely to change.
- <priority>: Indicates the priority of the URL relative to other pages on the site.
Including a `sitemap.xml` file in your website can help search engines index your pages more efficiently.