What Is Web Hosting?

Category: Hosting Basics ยท Updated 2026-10-30

Web hosting is a service that stores your website's files on a server that is connected to the internet 24/7, so visitors can load your site at any time. You rent space and resources (storage, CPU, memory, bandwidth) from a hosting provider, and a domain name points visitors to that server.

How web hosting works

A website is a set of files: HTML, CSS, images, scripts and often a database. Those files have to live on a computer that is always on and always reachable. That computer is a web server, and the company that runs it is your hosting provider.

When someone types your domain into a browser, this happens:

  1. The browser asks DNS for the IP address behind your domain name.
  2. DNS answers with the IP address of your hosting server.
  3. The browser sends an HTTP or HTTPS request to that server.
  4. The web server software (Apache, Nginx or LiteSpeed) finds the right files, runs any code such as PHP and queries the database if needed.
  5. The server sends the finished page back and the browser displays it.

This whole round trip usually takes well under a second on a healthy host.

What you get with a hosting plan

Most plans bundle several resources. The exact numbers depend on the plan and the provider.

  • Storage: disk space for files, databases and email, usually SSD or NVMe.
  • Bandwidth: how much data can be transferred between your server and visitors per month.
  • CPU and RAM: the processing power and memory available to run your site.
  • Control panel: a dashboard such as cPanel or Plesk to manage files, domains, email and databases.
  • SSL certificate: encryption for HTTPS, often free through Let's Encrypt.
  • Email accounts: mailboxes on your own domain.
  • Backups and support: restore points and a team you can contact when something breaks.

Types of web hosting

TypeBest forTypical price per month
Shared hostingSmall sites, blogs, portfoliosAbout $3 to $15
VPS hostingGrowing sites, custom software, more controlAbout $5 to $80
Cloud hostingSites that need to scale up and downUsage-based, from about $5
Dedicated serverHigh traffic, strict performance or compliance needsAbout $80 to $500 and up
Managed WordPressWordPress sites that want updates and caching handledAbout $10 to $60
Reseller hostingAgencies hosting many client sitesAbout $15 to $100

Prices are typical market ranges, not quotes from any specific provider, and promotional first-term prices are often lower than renewal prices.

Shared hosting puts many sites on one server and splits its resources. It is the cheapest option and enough for most new sites. VPS hosting gives you a virtual slice of a server with guaranteed resources and root access. Cloud hosting runs your site across a pool of servers so capacity can grow or shrink. A dedicated server is an entire physical machine rented to you alone.

Web hosting vs. domain name

A domain name (example.com) is your address. Hosting is the building at that address. You need both, and they can come from different companies. The link between them is made with DNS records, mainly an A record that points the domain to your server's IP address.

How to choose a hosting provider

  • Match the type to the project. A five-page business site rarely needs more than shared or a small VPS.
  • Check real resource limits, not just the word "unlimited". Look for CPU, RAM, entry process and inode limits.
  • Look at uptime commitments and what compensation, if any, is offered when they are missed.
  • Confirm backups are automatic and that you can restore them yourself.
  • Compare renewal prices, not only the first-term price.
  • Test support with a pre-sales question before you buy.

Frequently asked questions

What is web hosting in simple terms?

Web hosting is renting space on a server that is always connected to the internet, so your website is available to visitors at any hour. The hosting provider owns and maintains the server, and you upload your site files to it.

Do I need web hosting if I already have a domain name?

Yes. A domain name only gives your site an address. Without hosting there are no files and no server behind that address, so visitors would see an error or a parking page. You need to point the domain to a hosting server with DNS records.

What is the difference between shared hosting and VPS hosting?

On shared hosting many websites use the same server resources, and you cannot change server settings. On a VPS you get a dedicated share of CPU, RAM and storage inside a virtual machine, usually with root access, so performance is more predictable and you control the software.

How much does web hosting cost?

Shared hosting typically runs about $3 to $15 per month, a VPS about $5 to $80, and a dedicated server about $80 to $500 or more. Introductory prices are often lower than the renewal price, so check what you will pay in year two.

Can I host a website on my own computer?

Technically yes, but it is rarely a good idea. Home connections have changing IP addresses, limited upload speed, no uptime guarantee and extra security risk. Commercial hosting gives you stable networking, power redundancy and support.

What happens to my website if my hosting expires?

The server stops serving your site, and visitors will see an error or a suspended page. Providers usually keep your data for a short grace period, but you should keep your own backups and renew before the expiration date.

Related topics