Stop 01 · How the Web WorksTopics · 10/10

Web Hosting Basics

Part of the Web Development Roadmap

In short

A website on your laptop is only visible to you. Hosting is what puts it on a computer that never sleeps, so anyone with the link can open it at 3 a.m. from Chennai or Chandigarh.

Hosting means putting your site's files or server code on a computer that is always online so anyone can reach it. Options range from free static hosts to cloud servers you manage yourself.

The jaadu rolls up the shutter of a small shop on a lively market street, revealing neat shelves of boxes ready for customers.

Think of it like this

Renting a shop in the market

You can make the best sweets at home, but customers can't buy them until you rent a shop on a busy street. Some shops are tiny stalls that only display packed boxes. Others have a full kitchen where you cook to order. Hosting is renting that space for your site: a simple stall for static files, or a kitchen for server code.

Watch it happen

From your laptop to the world

Your laptop
Upload
Host server
Domain
Visitor

1/5You build index.html, style.css and script.js. Only you can see them at file:///...

The big ideas

What you need to know

Static hosting

Serves ready-made files: HTML, CSS, JS, images. Free tiers on GitHub Pages, Netlify and Vercel are perfect for portfolios and landing pages.

Managed app platforms

Run server code like an Express API for you. You push code, they handle the machine. Render and Railway are common choices.

Cloud servers (VPS)

A rented virtual machine on AWS, Azure or DigitalOcean. Full control, but you install, secure and update everything yourself.

Domain is separate

Hosting stores your site; the domain name is the address. You buy domains from a registrar and point them at your host.

How it works

Picking hosting for a project

  1. 1

    Only HTML, CSS, JS?

    Use a free static host. Done in minutes.

  2. 2

    Need an API or login?

    Put the backend on a managed platform.

  3. 3

    Need stored data?

    Add a hosted database the backend can reach.

  4. 4

    Going public?

    Connect a custom domain. HTTPS usually comes free.

Save yourself the pain

Common mistakes

Oops

Renting a full cloud server for a simple portfolio page.

Do this instead

A static host is free, faster and needs no maintenance. Save servers for apps that actually run backend code.

Oops

Sharing a link that starts with file:/// or localhost.

Do this instead

Those only work on your own computer. Share the URL your host gives you after deploying.

Your mission

Map your hosting needs

~15 min

Quick check

Your project is a single HTML page with CSS and a little JavaScript. What's the best hosting choice?

Go deeper

  1. 1Learn the difference between static hosting, managed platforms and a virtual private server.
  2. 2Look at the free tiers of two hosting platforms and note their limits.
  3. 3Find out where one of your favourite websites is hosted using a hosting lookup tool.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge