Please enable JavaScript to use CodeHS

Web Hosting

Types of hosting

There are many ways to put a website online. Some are cheap and simple; others are powerful and flexible. The right choice depends on your project's size, traffic, budget, and what you want to learn.

Hosting ~10 min Middle / High School
Entry Level

Shared hosting

Shared hosting is like renting an apartment with roommates. Many websites live on the same server and share its resources. It is usually the cheapest option and often comes with a control panel for installing apps, managing domains, and setting up email.

Shared hosting is great for small personal sites, class projects, and blogs. It is less great for high-traffic sites because one busy neighbor can slow down everyone on the server.


More Control

VPS hosting

A Virtual Private Server (VPS) is a slice of a larger server that acts like your own private machine. You get more control, more consistent performance, and the ability to install custom software. It costs more than shared hosting but less than a whole dedicated server.

VPS hosting is good for learning server administration, running custom apps, and handling moderate traffic. It does require more technical knowledge because you are often responsible for updates and security.


Scale

Dedicated and cloud hosting

A dedicated server is a whole physical machine just for your site. It is powerful but expensive and requires maintenance. Large organizations use dedicated servers when they need full control.

Cloud hosting spreads your site across many virtual machines in data centers around the world. You can add or remove resources as traffic changes. This is called scaling. Cloud hosting is flexible and popular for apps that need to grow quickly, though pricing can be harder to predict.


Simplest Path

Static hosting

If your site is made of only HTML, CSS, and JavaScript files, you can use static hosting. Providers like GitHub Pages, Netlify, Vercel, and Cloudflare Pages store your files on a fast global network and serve them directly.

Static hosting is often free for small projects, easy to set up, and very fast because the server does not need to generate pages on the fly. Many student portfolios, blogs, and project sites are static.

Tip: for your first site, start with static hosting. You can always move to a server or cloud provider later if your project grows.


Interactive

Hosting picker

Answer the questions below to get a suggestion for which hosting type might fit your project.

How much traffic do you expect?

Do you want to learn server administration?

Does your site need a database or user accounts?

Select all three options above to see a recommendation.

Code

A container for a static site

Cloud hosting often runs your site inside a container. This Dockerfile packages a simple static site into a tiny server image.


Your Turn

Check yourself

Describe one situation where shared hosting would be a good choice and one where you would need something more powerful.

Your answer:

Sample answer: Shared hosting is good for a personal portfolio or class project with low traffic. You would need VPS, dedicated, or cloud hosting for a popular app that needs custom software or a database and must stay fast under many users.


Check Yourself

Quick quiz

1. What is the main downside of shared hosting?

2. Which hosting type gives you a whole physical machine?

3. Why is static hosting a good first choice for simple sites?

Keep learning

You know the hosting options. Next, learn how to deploy a static site step by step.

Part of the Web Hosting series.