Skip to content

Under the hood

What is web hosting? How websites get online, explained

Web hosting keeps your site's files on an always-on server so anyone can visit. What hosting and deploying mean, static vs dynamic sites, and common mistakes.

By the GenKid team · · Updated · Facts checked · 5 min read

Key takeaways

  • Web hosting means storing your website's files on a server that's always connected to the internet, so anyone with the address can visit.
  • Deploying is the process of taking your latest code and putting it live on that server.
  • Static sites serve the same files to everyone; dynamic sites build pages using a back end and often a database.
  • Modern hosting services can deploy automatically whenever you push code, with previews and easy rollbacks.
  • Putting something online is a public step: for young makers it should be a parent's decision, within each service's age rules.

What is web hosting?

Web hosting is storing your website's files on a server — a computer that's always on and connected to the internet — so that anyone with the address can visit it. A hosting service runs those servers for you, so you don't need to keep your own computer switched on.

When you build a web page in a learning platform or on your computer, only you can see it. To let others visit, its files need to live on a server and have an address people can type. That's hosting.

When someone visits, their browser sends a request to the server, and the server sends back the files: HTML, CSS, JavaScript and images. See HTML, CSS and JavaScript explained.

Static vs dynamic sites

MDN, Mozilla's developer documentation, describes two broad kinds of site:

Static siteDynamic site
What the server doesSends the same files for each addressBuilds each response, often using data from a database
Good forPortfolios, games, quizzes, information pagesApps with accounts, saved data, personalised pages
Needs a back endNoYes
ComplexitySimpleMore moving parts

Many beginner projects are static and can be hosted very simply. Dynamic apps need a back end and often a database.

What "deploying" means

Deploying is putting a new version of your app live. It might involve:

  1. Building — preparing your code for the web (bundling files, optimising images).
  2. Uploading — sending the built files to the hosting service.
  3. Switching over — making the new version the one visitors see.

Modern hosting services can connect to your Git repository and deploy automatically whenever you push a change. Many also create preview deployments — test versions of each change, at their own address — and let you roll back to an earlier version if something breaks.

Common beginner hosting mistakes

These catch out almost everyone the first time a site goes live:

  • The wrong file name for the home page. Most hosts look for a file called index.html at the top level. Call it Home.html or tuck it in a folder, and visitors may get a "page not found" error.
  • Capital letters that don't match. On your computer, Logo.PNG and logo.png might be treated as the same file; on many web servers they're different, so the image works at home and breaks online. Keep file names lower case.
  • Links that point at your own computer. A link like C:/Users/sam/game/style.css works only on Sam's laptop. Use relative paths such as style.css or images/logo.png.
  • Forgetting to deploy again. Changing the files on your computer doesn't change the live site. Each update needs a new deploy (or a push, if your host deploys from Git).
  • Huge images. A photo straight from a phone can be several megabytes and make the page slow on mobile data. Shrink images before uploading.
  • A secret in the code. Anything in front-end code can be read by visitors, so API keys must never go there. See API keys and secrets.

If you build with AI, ask it to check for these before you deploy — then check its answer yourself.

Before you put something online

Going live means anyone can see it, so check for personal information and secrets, test it, keep it honest, and make sure the hosting service's age rules allow it (when we checked in November 2026, Netlify set 13 and Vercel 16; see why developer tools have age limits). Publishing is a real-world step and should be an adult's decision. Our guide to launching your first app safely has the full pre-launch checklist.

Hosting vs domain name: what's the difference?

Hosting is where your site's files live; a domain name is the human-friendly address that points people to them. Every hosted site gets an address, and hosting services often give you a free one under their own name. You can also register your own domain name, like example.com, and point it at your host. You never own a domain outright: you pay for the right to use it for a year or more, and renew it. See how domain names work.

If you later move to a different host, a domain you control can be pointed at the new one, so visitors don't need a new address — one way to avoid getting locked into a tool.

Keeping a site running

Launching is the start, not the end. Live sites need:

  • updates when things change or break;
  • monitoring — noticing when it's down or slow;
  • logs — records of what happened, used to diagnose problems;
  • security — keeping dependencies updated and secrets safe.

That's why professional developers talk about "launching and maintaining", not just "building". Once your site is live and working, SEO basics for young makers explains how to help people find it.

Learning deployment safely

GenKid teaches deployment in stages: Levels 1 and 2 use a simulated deploy inside the sandbox, so learners understand builds, previews and rollbacks with no accounts. Level 3 (13+) introduces real tools like Netlify where terms allow, and Level 4 (16+) covers launching and maintaining a real app, with an adult involved in any real-world steps. See the pathway.

Frequently asked questions

Can I host a website on my own computer?

Technically yes, but it's rarely a good idea. Your computer would need to stay on and connected all the time, and opening it up to the internet brings security risks. A hosting service handles that for you, often free for small static sites.

Is web hosting free?

Many services offer free hosting for small, simple sites, often with limits. Bigger or dynamic apps may cost money.

What does deploy mean?

To deploy is to publish a new version of your app so that visitors see it, usually by building and uploading your latest code to a hosting service.

Sources

  1. Introduction to the server side (opens in a new tab) — MDN Web Docs
  2. What is a domain name? (opens in a new tab) — MDN Web Docs
  3. Deploy overview (opens in a new tab) — Netlify Docs
  4. Netlify terms of use (opens in a new tab) — Netlify
  5. Vercel terms of service (opens in a new tab) — Vercel

How we write: GenKid articles are researched and drafted with the help of AI tools, then checked in a separate review step against the sources listed above before they are published, and re-checked when they are updated. Rules and products change, so check official pages for your country before acting on anything here. This article is general information, not legal advice. Spotted a mistake? Email hello@genkid.app.

Under the hood

Front end vs back end: what's the difference?

The front end is the part of an app you see and use; the back end runs on a server and stores data. A simple guide, and why the split matters for safety.

5 min read