sitemap.xml
A `sitemap.xml` file is an important part of a website that helps search engines understand its structure. Here’s a simple breakdown of its components:
- XML Declaration: This is the first line of the file, indicating the file type.
- urlset: This is the root element that contains all the URLs.
- url: Each URL entry contains the following elements:
- loc: The location of the webpage (URL).
- lastmod: The last modified date of the webpage.
- changefreq: The frequency at which the page is likely to change.
- priority: The priority of the page relative to other pages on the site.
Here’s 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 structure helps search engines efficiently crawl and index your website.