A `sitemap.xml` file is an XML document that provides search engines with information about the pages on a website. It helps improve the indexing of a site by listing all relevant URLs. Here’s a simple example of how a `sitemap.xml` might look:
```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.6
```
Key elements of a `sitemap.xml` include:
- <url>: Defines a URL entry.
- <loc>: Specifies the location of the page.
- <lastmod>: Indicates the last modification 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` can enhance SEO efforts by ensuring search engines can easily discover and index all important pages on a website.