sitemap.xml
A **sitemap.xml** file is an XML file that lists the pages of your website to inform search engines about the organization of your site content. Here are the key components and structure of a sitemap.xml:
- XML Declaration: Indicates the version of XML used.
- urlset: The root element that contains all the URLs.
- xmlns: A namespace definition that declares the XML schema.
- url: Each URL entry contains details about a specific webpage.
- 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).
- priority: The priority of the page relative to other pages on the site (value between 0.0 and 1.0).
Here is a simple example of a sitemap.xml:
```xml
http://www.example.com/
2023-10-01
monthly
1.0
http://www.example.com/about
2023-09-15
monthly
0.8
```
This file helps search engines like Google crawl your site more effectively and understand its structure.