Wondering what is web hosting and whether you have to pay for it? It is rented server space that stores your site’s files and serves them to visitors, and basic paid plans run about $5-10 per month.
This guide is part of our web development basics series.
| Item | Value |
|---|---|
| Typical basic paid hosting | $5-10 per month |
| Typical domain name cost | $5-15 per year |
| Overall hosting price range, by type | $2 to $500/month |
| Common hosting types | Six (shared, VPS, dedicated, cloud, managed, colocation) |
| Dedicated hosting | Your site is the only one on the server |
| Introductory prices | Apply to the first billing term only |
Figures come from MDN’s guide to publishing a website and Hostinger’s hosting price overview. Prices change often, so check the source before you rely on them.
What is web hosting and how does it work?
A website is a set of files: pages, images and code. Web hosting is the service that keeps those files on a computer that is always connected to the internet, so anyone can open your site at any time.
MDN describes the process in two steps. According to MDN’s publishing guide: “You put website files on the web server.” It then adds that “The web server provides website content to website visitors.”
Hosting is separate from your address. If you want to understand the name people type into the browser, read our explainer on what is a domain name, which covers the address side.
Simple sites need little more than storage. If your pages will also run interactive features in the browser, our guide on what is javascript used for shows what that code does.
The main types of web hosting
Hosting types differ mainly in how much of a server you get. TechRadar says they differ in “the amount of storage capacity, control, technical knowledge requirement, server speed and reliability.”
The same TechRadar guide says these are “the six types of web hosting you will most often come across”:
- Shared hosting: all domains share the same server resources, such as memory and processor, which keeps plans cheap.
- VPS hosting: each website has its own space on the server, though it still shares a physical machine with other users.
- Dedicated hosting: the server is exclusively rented by you, and your website is the only one stored on it.
- Cloud hosting: a flexible option that TechRadar describes as the current buzzword of the technology industry.
- Managed hosting: with fully managed plans, the host can handle fixes and optimisation of your site files.
- Colocation: you rent space in a data centre for your own equipment.
Shared plans suit beginners because, as TechRadar puts it, the cost is relatively low and the option is excellent for owners in their beginning stages. VPS plans give more customisation, but TechRadar warns that performance can still be affected by other sites on the server.

What does web hosting cost?
Costs depend on the type and on how long you commit. Hostinger’s price overview says website hosting costs range from $2 to $500/month, depending on the type of hosting you choose.
For a small project, MDN gives a simpler guide. It says some hosting is free for basic static files, while others cost a small amount per month (say $5-10 per month), and a domain name usually costs $5-15 per year, as set out in MDN’s cost guide.
Watch the renewal price. Hostinger notes that longer terms lower the monthly rate, but the introductory price applies only to the first term, and most plans renew at a higher rate.
The domain fee also varies by extension and by registrar, so a cheap hosting offer does not fix the total yearly bill on its own.
How to choose a hosting plan
Start with what your site actually does, then pick the smallest plan that covers it. A personal blog and an online shop need very different resources.
- Decide whether your site is a handful of static pages or needs a database and regular updates.
- Match the type to your skills: dedicated and VPS servers ask for more technical knowledge than shared plans.
- Read the renewal price, not only the first-term offer.
- Check what support and management the host includes, since managed plans take maintenance off your hands.
- Start small. You can usually move to a larger plan as traffic grows.
This site is editorially independent, and hosting comparisons here are not influenced by any affiliate relationship.
Free and alternative ways to publish
You do not always need to buy hosting. MDN lists web-based editors and online publishing tools that are free for basic sites, and it says they are easy to use and great for learning.
These tools work well for practice and small experiments. When you want more control over content and appearance, MDN says most professionals and businesses buy hosting and a domain name instead.
Frequently asked questions
Is web hosting the same as a domain name?
Show answer
No. Hosting stores your files, while a domain is the address that points visitors to them. You usually buy or rent the two separately, although many providers sell both.
Which hosting type should a beginner pick?
Show answer
Shared hosting is the usual starting point because it is cheap and needs little technical work. You can move to VPS or cloud hosting later if the site outgrows it.
Can I host a website for free?
Show answer
For simple static pages, yes. MDN says some services are free for basic static file hosting, though extra features and your own domain typically cost money.
Why did my hosting bill go up after the first year?
Show answer
Low starter prices are tied to your first billing term. After that, most plans move to the standard rate, so compare renewal pricing before you sign up.



