Hosting — Where the Site Lives
The bakery's owner has bought crumbbakery.com and you have a folder of HTML, CSS and images on your laptop. Yet nobody can see the site. A domain is only a name; the files still need a home that is switched on, connected and ready to answer requests at three in the morning. That home is the host.
The rule
The domain is the name on the sign; hosting is the building behind it.
Hosting means your site's files, and any server code, live on a computer that is always on and reachable from the internet. You could serve the site from your laptop, but it sleeps, moves between networks and has a home connection that changes address. A host solves all of that for you.
Hosting comes in a few common shapes:
| Kind | What you get | Good for |
|---|---|---|
| Static hosting | The host serves your files exactly as they are | Sites made of HTML, CSS, JavaScript and images |
| Shared hosting | A slice of one server shared with many other sites | Small classic sites, often with PHP |
| VPS or cloud server | A whole virtual machine you manage yourself | Full control, custom back ends |
| Platform hosting | You push code; the platform builds, runs and scales it | Apps with some server code, without managing machines |
A frontend site like the bakery's is usually static: the browser does the work, so the host only has to hand over files. Many static hosts also spread copies of your files across a CDN (content delivery network), a set of servers around the world, so a visitor in Chennai is served from a nearby machine rather than one on another continent.
Two things join the name to the building:
- A DNS record at the domain's DNS provider pointing
crumbbakery.comat the host (anArecord or aCNAME, as the host tells you). - A TLS certificate so the site works over HTTPS. Most modern hosts issue one for free and renew it automatically.