In the present day, you’ll find out about sitemaps.
We’ll cowl the fundamentals first. Then transfer on to discussing differing kinds and the perfect practices you possibly can comply with when making a sitemap.
And also you’ll see some examples.
Let’s begin.
What Is a Sitemap?
A sitemap is a file that tells search engines like google like Google what pages you may have in your web site. It helps them discover and index your web site.
Sitemaps can be found in extensible markup language (XML) and hypertext markup language (HTML) format. (Extra on these later.)
Whereas sitemaps are sometimes created for crawling functions, corporations additionally construct sitemaps after they’re planning their web site structure.
They sometimes create visible sitemaps. Like this:

This visible sitemap helps to know how all of the content material matches collectively when planning the location construction.
Observe: The remainder of this text focuses on sitemaps which are related for search engine marketing—those that assist search engines like google (and web site guests) discover your pages. Not visible sitemaps, that are used for internet design functions.
Why Are Sitemaps Necessary?
When search engine bots crawl your web site, they comply with hyperlinks to find pages.

However typically, they will miss a number of nooks and crannies. Particularly in case your web site is massive or has complicated navigation.
That is the place sitemaps come to the rescue.
By making a sitemap, you are giving search engines like google a helpful listing of all of your pages.
Consider it as a cheat sheet that tells them, “Hey, these are all of the pages I’ve. Do not miss them!”
Your pages must be discovered earlier than they will rank in search outcomes. And sitemaps assist with that.
For those who’re already utilizing a sitemap, you possibly can run your web site by means of an auditing device like Website Audit.
The device scans your sitemap and identifies any errors it might need, like formatting errors. And affords suggestions on repair them.
Configure the device to run your first audit.
After the audit is full, go to the “Points” tab and seek for “sitemap.”
You’ll see whether or not there are any errors detected.
If that’s the case, click on on “Why and repair it” to know what the problem is and deal with it.

Completely different Sorts of Sitemaps
There are two foremost sorts of sitemaps: XML and HTML.
Let’s go over every:
XML Sitemaps
An XML sitemap is a file that lists all of the pages in your web site. Which makes it simpler for search engines like google to crawl and index your content material.
XML sitemaps are written for search engine bots—not customers.
Together with the checklist of pages, an XML sitemap may also embrace different technical particulars. Like when the web page was final modified, how steadily the web page content material is more likely to change, and the web page’s precedence relative to different pages on the location (indicated on a scale starting from 0.0 to 1.0).
Right here’s what an XML sitemap with this data may seem like:

And right here’s an instance of an XML sitemap URL: yourwebsite.com/sitemap.xml. Which means your XML sitemap could possibly be positioned at this URL.
HTML Sitemaps
An HTML sitemap is a web page in your web site itemizing all necessary web site pages.
It serves as a desk of contents. And helps each search engine bots and human guests simply navigate by means of your web site.
Not like XML sitemaps, HTML sitemaps are designed primarily for customers.
They supply a helpful overview of your web site’s construction and permit guests to seek out particular pages shortly.
Right here’s an instance of an HTML sitemap:

An HTML sitemap’s URL appears like a daily webpage URL.
What Are the Variations Between XML Sitemaps and HTML Sitemaps?
Let’s take a look at some key distinctions between XML and HTML sitemaps.
XML sitemaps are:
- Meant for search engines like google
- Written in XML code
- Capable of embrace URLs in any order
- Not designed for human readability or navigation
HTML sitemaps are:
- Meant for customers
- Created in HTML and displayed as webpages
- Useful for offering a structured checklist of hyperlinks to pages throughout the web site
- Designed for human readability and navigation. However can be utilized by search engines like google for crawling.
XML Sitemap Examples
XML sitemaps look a bit cryptic.
Let’s see some examples.
- Samsung’s XML sitemap:

- Greatest Purchase’s XML sitemap:

- Shopify’s XML sitemap:

- OpenAI’s XML sitemap:

HTML Sitemap Examples
HTML Sitemaps look extra human-friendly.
Listed below are some examples:
- Microsoft’s HTML sitemap:

- Airbnb’s HTML sitemap:

- Walmart’s HTML sitemap:

- Apple’s HTML sitemap:

Sitemap Greatest Practices
Earlier than making a sitemap, think about auditing your web site to seek out and repair any technical points you might need.
You should use Semrush’s Website Audit device for this.
The device checks your web site for greater than 140 on-page and technical points. Together with damaged hyperlinks, redirect chains and loops, and duplicate content material.
Pages with these points shouldn’t be part of your sitemap. Not less than not till these points are fastened.
Why?
As a result of they may confuse search engine bots and waste their crawl finances (a crawler will solely get to so a lot of your pages earlier than it strikes on).
Open the device, enter your web site URL, and click on “Begin Audit.”

The configuration window will pop up.
Subsequent, choose the variety of pages you wish to verify for points. And click on “Begin Website Audit.”

After the audit is full, go to the “Points” tab. You’ll see which technical errors your web site has.

You may as well seek for a particular error. Simply sort the identify of the problem within the search field and the device will spotlight whether or not you may have that downside.
For instance, if we search “redirect chains,” we see 107 pages are affected.

It’s a good suggestion to make use of this device to seek out and repair errors along with your web site earlier than creating XML and HTML sitemaps.
Let’s shortly go over another finest practices you possibly can comply with:
Embody Web page Precedence
For those who’re creating an XML sitemap, you possibly can assign a <precedence> tag to your pages.
This tag tells Google how necessary a selected web page is from a crawling standpoint.
Priorities are set with values comparable to 0.0, 0.1, 0.2 and many others. All the way in which to 1.0. The upper the worth, the extra necessary the web page is.
If all pages are set with the identical precedence, Google might not be capable to prioritize crawling. So, be sure to’re tagging pages appropriately.
Observe: The precedence tag is not a assure that Google will crawl or index pages within the order you specify. It is extra like a suggestion, with Google in the end deciding the crawling precedence.
Point out Change Frequency
In an XML sitemap, you should use the <changefreq> tag to inform search engines like google while you count on a particular URL’s content material to alter.
This can assist them schedule their crawling in a extra environment friendly means.
There are seven <changefreq> values you should use:
- By no means: Suggests the content material at this URL isn’t anticipated to alter ever once more. This is perhaps used for archived pages that can stay static indefinitely.
- Yearly: Signifies that the content material on the URL modifications about as soon as per yr. This could possibly be relevant for pages internet hosting annual reviews or yearly occasion data.
- Month-to-month: Works finest for pages which are up to date on a month-to-month foundation
- Weekly: Signifies pages that might get up to date every week, comparable to ecommerce product pages
- Day by day: Identifies pages that require each day updates, comparable to horoscope pages
- Hourly: Signifies pages that wants hourly updates, comparable to pages that share climate updates
- All the time: Works finest is for pages that function real-time data, comparable to inventory costs
Keep away from Noindex Pages
Sitemaps sign to search engines like google which pages you need crawled and listed.
So, don’t embrace your pages with noindex tags in your sitemap. This can ship conflicting indicators to them.
Keep away from Duplicate Content material
When search engines like google encounter an identical (or close to an identical) pages in your sitemap, they’re susceptible to losing their crawl finances in your duplicate pages.
It is like they are going in circles as an alternative of exploring new and beneficial content material in your web site.
By excluding duplicates, you make sure that search engine crawlers deal with the unique, distinctive pages that deserve their consideration.
Use A number of Sitemaps
XML sitemaps have limits—they cannot checklist greater than 50,000 URLs or be bigger than 50 MB.
In case your sitemap goes over these limits, you’ll have to make use of a number of sitemaps.
Guarantee Your Sitemap Is Error-Free
Sitemaps are an necessary a part of your web site. They assist search engines like google and customers discover your pages.
So, don’t overlook them.
Use Semrush’s Website Audit device to detect points along with your sitemap.
Get began by signing up for an account immediately.