What Is Web Hosting? A Plain-English Explanation
Every website you visit lives on a computer somewhere. That computer, usually called a server, stores the site's files and sends them to your browser when you type the address or click a link. Web hosting is the service of renting space and time on one of those servers, along with the network connection, power, cooling and maintenance that keep it online all day and night.
You could, in theory, run a website from a computer in your house. In practice almost nobody does, because a home connection is slow to upload, your internet provider may block incoming traffic, the machine has to stay on all the time, and a power cut takes your site offline. A hosting company handles all of that in a data center built for the job.
What you are actually paying for
When you buy a hosting plan, you are buying a bundle of a few things:
- Storage. Disk space for your pages, images, databases and email. Most small sites use far less than they think; a typical blog fits in a few gigabytes.
- Bandwidth or transfer. The amount of data the server sends to visitors. Many plans call this "unmetered", which usually means there is a fair-use limit buried in the terms.
- Computing power. CPU and memory for running the software that builds your pages, such as WordPress and its PHP code and database.
- Uptime and support. Someone is responsible for keeping the server patched and running, and you have somebody to contact when it is not.
- Extras. Email accounts, a control panel, backups, a free SSL certificate and sometimes a free domain for the first year.
Hosting is not the same as a domain
People often mix these up. A domain name (like example.com) is the address. Hosting is the building at that address. You rent the domain from a registrar, usually yearly, and you rent hosting from a host, monthly or yearly. They can come from the same company or from different ones. DNS records are what connect the two: they tell the world which server answers for your domain. Our DNS basics guide walks through that in detail.
Keeping the domain and the hosting at separate companies is a common habit among experienced site owners. If you ever want to change hosts, you just point the domain somewhere new, and you never risk losing the name if a hosting account has a billing problem.
The main types of hosting
Shared hosting puts many customers on one server. It is the cheapest option and is fine for most small business sites, blogs and portfolios. The trade-off is that you share resources with your neighbors, and you have limited control over the server's settings.
VPS hosting (virtual private server) splits a physical server into isolated virtual machines. You get a guaranteed slice of CPU and memory and usually full administrator access. It costs more and expects you to know more. Our guide to shared vs VPS hosting compares the two.
Dedicated servers give you a whole physical machine. They suit busy sites with steady heavy traffic, or businesses with specific compliance needs.
Cloud hosting spreads your site over a pool of machines that can grow or shrink with demand. You often pay for what you use, which is great for spiky traffic and harder to budget for.
Managed WordPress hosting is shared or cloud hosting tuned for WordPress, with automatic updates, caching and backups. It costs more than plain shared hosting in exchange for less work.
Static hosting serves plain HTML, CSS and JavaScript files without a database or server-side code. Services such as Cloudflare Pages, GitHub Pages and Netlify offer generous free tiers for static sites. If your site does not need logins, a shopping cart or a content management system, this can be fast, secure and free. See our Cloudflare Pages walkthrough.
How to tell what you need
Start from what the site has to do, not from the plan names.
- A few pages about you or your business that rarely change: static hosting or the cheapest shared plan is plenty.
- A blog or business site in WordPress: shared or managed WordPress hosting.
- An online store: a host that supports your store software well, or a hosted store platform, plus an SSL certificate (which you need on every site anyway).
- A web app with custom code, background jobs or unusual software: a VPS or cloud server.
- Several client sites you manage: reseller hosting or a VPS with a control panel.
Things to check before you buy
Introductory prices are often much lower than renewal prices. Read the renewal rate, not just the first-term price, and work out what two or three years will cost. Check whether daily backups are included and whether restoring one costs extra. Look for a free SSL certificate, which should be standard. Find out where the servers are; a data center near your visitors helps speed a little. Check how support works, whether it is chat, tickets or email, and its hours. Finally, check the refund window and how easy it is to export your site if you leave.
Common beginner mistakes
The most common mistake is buying far more than you need: a three-year plan with every add-on before the site has a single visitor. Start small; almost every host lets you upgrade later without moving. The second mistake is not keeping your own backups. Even good hosts make errors, so download a copy of your site and database regularly. The third is letting the domain or hosting auto-renew lapse because the card on file expired. Put renewal dates in your calendar.
The short version
Web hosting is rented space on a server that keeps your site online. Most first sites need either free static hosting or an inexpensive shared plan. Pick based on what the site does, check renewal prices and backups, keep your domain separate if you can, and upgrade only when real traffic gives you a reason.