Step 1 : Review the structure of your pages.
The first thing you need to do is look at your website’s existing content and see how everything is structured.
Step 2 : Code your URLs
Format each URL with XML tags for each page, which you wish the search engine to crawl for search results.
Step 3 : Validate the code.
Validate code with tools like XML SiteMap Validator
Step 4 : Add your sitemap to the root and robots.txt
Locate the root folder of your website and add the sitemap file to this folder and also to robots.txt
Step 5 : Submit your sitemap.
Submit your website to Google Search Console.
Example :
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.freetimelearning.com/</loc>
<lastmod>2017-10-04T22:37:13+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>