Chapter 15 of 15

Publish Your Website for Free and Get Found on Google

When your pages are ready, you can put them on the internet for free.

Free hosting options

ServiceHow it works
NetlifyDrag your website folder onto their page. It is live in seconds.
GitHub PagesUpload your files to a GitHub repository, turn on Pages in settings.
Cloudflare Pages / VercelSimilar to Netlify, also free for small sites.

All of them give you free HTTPS (the lock icon), which Google likes.

Your website folder is dragged to a hosting service and becomes a live page
Free hosting turns your folder into a real website with a link.

Publish with Netlify in 3 steps

  1. Make a free account on Netlify.
  2. Open the "Sites" page and drag your my-website folder onto it. Make sure index.html is directly inside the folder.
  3. Netlify gives you a link like something.netlify.app. Share it!

Later you can buy your own domain name (like yourname.in) and connect it in the site settings.

Publish with GitHub Pages

  1. Make a free GitHub account.
  2. Create a new repository. Name it my-website and make it public.
  3. Click Add file → Upload files and drag in all your website files. Commit.
  4. Open Settings → Pages. Under Branch, choose main and click Save.
  5. After a minute, your site is live at yourname.github.io/my-website.

GitHub also keeps every old version of your files, which is a nice safety net.

Your own domain name

A domain like yourname.com looks more professional than a free sub-address, and you keep it even if you change hosting.

  1. Buy the domain from a registrar. A .com or .in usually costs a few hundred to about 1,500 rupees a year. Check the renewal price, not only the first-year offer.
  2. Connect it. In Netlify, open Domain settings → Add a domain. Netlify shows the DNS records to add.
  3. Add the records at your registrar's DNS page. It can take a few minutes to a few hours to start working.
  4. HTTPS (the lock icon) is turned on for free by Netlify and GitHub Pages once the domain works.
Choosing a nameShort, easy to spell, and easy to say on the phone. Avoid numbers and dashes. Check that no big brand already uses a similar name.

Basic SEO checklist

SEO (Search Engine Optimisation) helps people find your site on Google. Do these on every page:

A Google search result: the URL, the title from the title tag and the text from the meta description
What you write in <head> is what people see on Google.
HTML
<head>
  <title>Masala Chai Recipe: Easy 10 Minute Method | MySite</title>
  <meta name="description" content="Make strong, tasty masala chai at home in 10 minutes with simple kitchen spices.">
  <link rel="canonical" href="https://mysite.com/masala-chai.html">
</head>
  • Unique title on every page, about 50 to 60 letters, main words first.
  • Meta description, about 150 letters. Google often shows it under your title.
  • One h1 that matches what people search.
  • Good alt text on images.
  • Clear file names and URLs: masala-chai.html, not page2.html.
  • Link your pages to each other with helpful link text.
  • Fast, mobile-friendly pages (chapters 10 and 11).
  • Write helpful, original content. This matters most of all.

Check your speed

Google prefers fast pages, especially on phones. After publishing:

  1. Open pagespeed.web.dev and enter your address.
  2. Look at the mobile score first.
  3. Fix the top items in the list. On small sites, the usual problems are big images and too many fonts.

Tell Google about your site

A sitemap file is submitted to Search Console and your pages appear on Google
A sitemap tells Google which pages you have.
  1. Make a sitemap.xml file that lists all your pages.
  2. Make a robots.txt file that points to the sitemap.
  3. Open Google Search Console, add your website and submit your sitemap.
robots.txt
User-agent: *
Allow: /
Sitemap: https://mysite.com/sitemap.xml
Be patientGoogle can take a few days or weeks to show a new site. Keep adding good pages.

See how many people visit

Search Console shows how people find you on Google. To see all visitors, add a small analytics script. Simple options:

  • Google Analytics: free and very detailed, but complex, and you need a cookie notice in many countries.
  • Privacy-friendly tools like Plausible or Umami: simple dashboards, no cookies. Some are paid, some you can host yourself for free.
  • Netlify Analytics: a paid add-on that counts visits on the server, with no script on your pages.

Keep your site growing

Publishing is the start, not the end. Websites that rank well usually:

  • Add new pages regularly, each answering one real question people search for.
  • Update old pages when things change, and change the "updated" date only when you really edit.
  • Link pages together, so each new page helps the old ones.
  • Get mentioned on other sites. Share helpful pages in communities where learners ask questions.

Launch checklist

  • ☐ Every page has a unique title and description
  • ☐ All links and images work (click through every page)
  • ☐ The site looks right on a real phone
  • ☐ Images are compressed
  • ☐ sitemap.xml and robots.txt point to your real domain
  • ☐ HTTPS lock icon shows
  • ☐ Site added to Google Search Console and sitemap submitted
  • ☐ Contact details on the site actually work

You have finished the course. You can now build a complete website, make it work on every screen, and put it online. The next step is JavaScript, which adds actions to your pages.

Practice time

  1. Publish your site on Netlify or GitHub Pages.
  2. Write a unique title and description for every page.
  3. Add your site to Google Search Console.
  4. Publish one practice page on GitHub Pages.
  5. Run PageSpeed on your published site and fix one problem.

Quick summary

  • Free hosting: Netlify, GitHub Pages, Cloudflare Pages.
  • Every page needs a unique title, description and one h1.
  • Submit a sitemap in Google Search Console.