Why do we have to add the sitemap link in our robots.txt file?

In this article, I'll try to explain the need to add a sitemap link in the robots.txt file. I do it for the sake of hope that it might be useful to the readers of this article so they do not waste too much time looking for useful reading.
What is a Sitemap?

Sitemap is a file that contains a list of URLs on our website where the URLs can be searched and indexed by the search engine (eg Google Search). In most cases it is intended that they will only be consumed by a search engine, so they do not have to be people friendly. but only naked link list. Normally, a sitemap file has the extension .xml, but it is also possible to use another extension like .html or .txt from Google.
For optimization purposes, the sitemap file is usually stored in the root directory. For example, at hxxp: //www.example.com/sitemap.xml. It may seem like an unimportant thing, but we could think of how to put it in the root of the crawl sitemap file (for example, hxxp: //www.example.com/sitemap.xml) and in a specific folder ( eg hxxp: //) runs faster. www.example.com/folder/../sitemap.xml). The faster way to crawl is likely to be when we save our sitemap file at the root of our website.
What is robots.txt?

Robots.txt is a text file that otherwise exists in the root of a Web site. In most cases this is the first target that is searched by a search engine robot, i. H. Googlebot. The file "Robots.txt" contains information on which folder and / or file the search engine crawler (ie Googlebot) allows to crawl.
Benefits of adding a sitemap file to the robots.text file

Transferring the sitemap to the search engine is usually a simple task. But in unusual conditions, if we can not send our Sitemap to a search engine for a reason, because the native language of the search engine is different from ours and it does not provide a translator or a different language version. Help the search engine crawler to open the sitemap file to find our website. Please read the file robots.txt. Another reason why we need to add the link to the sitemap file in the robots.txt file is that you give an unknown crawler (if any) an instruction for the existence of our sitemap file to make it our sitemap file Manual indexing can be self-indexing without necessity.
So this is the end of this article. I hope it is useful for you to improve the visibility of your website for the future visitor, and I do not forget to ask your forgiveness if there are many mistakes made by me in this article. Goodbye and good luck with your website!

This article is proudly presented by Home Ideas Made Simple.