sitemap.xml
A `sitemap.xml` file is an XML file that lists the pages of your website to help search engines like Google understand your site's structure. It plays a crucial role in SEO by ensuring that all important pages are indexed.
Here’s a simple structure of what a `sitemap.xml` might look like:
```xml
https://www.example.com/
2023-10-01
monthly
1.0
https://www.example.com/about
2023-09-15
yearly
0.8
https://www.example.com/contact
2023-09-20
yearly
0.5
```
### Key Elements of `sitemap.xml`:
- <urlset>: The root element that encapsulates all the URLs.
- <url>: Represents a single URL entry.
- <loc>: The URL of the page.
- <lastmod>: The date the page was last modified.
- <changefreq>: How frequently the page is expected 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).
### Benefits of Using `sitemap.xml`: