A `sitemap.xml` file is an XML document that helps search engines understand the structure of a website. It lists URLs for a site along with additional information about each URL. Here are some key components:
- URL: The address of the page.
- Last Modified: The date when the page was last updated.
- Change Frequency: How often the page is likely to change (e.g., daily, weekly).
- Priority: The importance of the page relative to others on the site, on a scale from 0.0 to 1.0.
Here’s a simple example of a `sitemap.xml` structure:
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-09-20
yearly
0.5
Using a `sitemap.xml` file can help improve a website's visibility and indexing by search engines.