sitemap.xml
A `sitemap.xml` file is an XML file that lists the URLs for a site along with additional metadata about each URL. This helps search engines like Google to crawl the site more intelligently.
Here’s a simple structure of what a `sitemap.xml` file looks like:
```xml
http://www.example.com/
2023-10-01
daily
1.0
http://www.example.com/about
2023-10-01
monthly
0.8
http://www.example.com/contact
2023-10-01
yearly
0.5
```
### Key Elements:
- <urlset>: The root element that defines the XML document as a sitemap.
- <url>: Contains details about a specific URL.
- <loc>: The URL of the page.
- <lastmod>: The date the page was last modified.
- <changefreq>: How frequently the page is likely to change (e.g., daily, weekly, monthly).
- <priority>: The priority of the page relative to other pages on the site (from 0.0 to 1.0).
Creating a `sitemap.xml` file is an important step for SEO, as it helps search engines index your site more effectively.