A `sitemap.xml` file is an XML file that lists the pages of a website to help search engines understand its structure. Here are the key components:
- URL: The web address of a page.
- Last Modified: The date the page was last updated.
- Change Frequency: How often the page is likely to change (e.g., daily, weekly).
- Priority: The priority of the page relative to other pages on the site (between 0.0 and 1.0).
Here’s a simple example of a `sitemap.xml` file:
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-09-15
yearly
0.8
http://www.example.com/contact
2023-10-10
monthly
0.7
This file helps search engines crawl the website more efficiently.