Guide Research
How to Host a Website in 2026: A Beginner's Step-by-Step Guide
How to host a website: pick a domain and hosting type, point DNS, add SSL and upload your files. Real costs and steps for beginners, as of November 2026.
To host a website you need two things: a domain (the address, like yourname.com) and hosting (a server that stores your files and shows them to visitors). You buy the domain, buy a hosting plan, point the domain to the hosting through DNS, turn on SSL, and upload your site. For a small site the whole thing takes about an hour and costs from roughly $2 to $11 a month, plus about $20 a year for the domain after the first year.
The rest of this guide goes through each step in order: which hosting type to choose, what DNS records do, how SSL works, how to upload files, and what you'll pay in year one and after.
A quick note on how I wrote this. I'm Anna, a web designer and developer. I build client sites in Framer, WordPress, plain HTML and with AI tools, but I haven't hosted sites on Hostinger, so the Hostinger details here come from official pricing pages, docs and independent tests. Figures are as of November 2026. Some links here are affiliate links.
Step 1: Figure out what kind of site you have
The right hosting depends on what you're putting online. Answer this first and the rest gets easy.
- Plain HTML, CSS and JavaScript. A portfolio or landing page exported from Claude, Cursor or a static builder. Any host works.
- WordPress. Needs PHP and a database. Every shared host supports it, usually with a one-click install.
- A Node.js app. React with server rendering, Next.js, or a project from Lovable or Bolt. Needs a host that runs Node.js.
- No files at all. A site built in Wix, Squarespace, Framer or Webflow lives on that platform. You only connect a domain.
Step 2: Choose a hosting type
| Type | What it is | Typical price | Best for |
|---|---|---|---|
| Shared hosting | Your site shares one server with many others | $2–$17/mo | First sites, portfolios, small business sites, blogs |
| Cloud hosting | More resources on a managed cloud server, still a simple panel | $8–$30/mo | Stores, busier sites, Node.js apps |
| VPS | Your own virtual server. You install and update everything | $5–$20/mo | Developers, n8n, custom apps |
| Managed WordPress | Hosting tuned only for WordPress, with updates handled for you | $3–$35/mo | WordPress sites where you want less admin |
| Builder hosting | Wix, Squarespace, Framer. Hosting comes with the builder | $15–$40/mo | People who don't want to touch files |
Ranges are typical intro prices as of November 2026. Renewals are higher.
Shared hosting is where most beginners should start. The provider runs the server, the security updates and the backups. You get a control panel, a file manager and a one-click WordPress installer.
Cloud hosting feels the same in the panel but gives you more CPU, memory and storage. Pick it when a shared plan starts to slow down, or when you run an online store.
A VPS is cheap for the power you get, but you're the admin. If commands like ssh and apt update mean nothing to you, skip it for now. It's the right tool for things that run all day, such as self-hosted n8n.
Managed WordPress is shared or cloud hosting with WordPress-specific extras: automatic core updates, staging copies and caching. Most big hosts sell it as a separate plan.
Builder hosting is the simplest, and you can't move the site elsewhere later. If you want to compare builders, see our hosting and domains guide.
Step 3: Buy a domain
A domain costs about $10–$20 a year for a .com. Many hosts give you one free for the first year with an annual plan. After that you pay the normal renewal.
Hostinger, for example, lists .com at $19.99 a year on renewal, and .shop or .online at $0.99 for year one but $35–$40 on renewal, as of November 2026. Look at the renewal price, not the first-year price.
Tips for choosing:
- Pick
.comif it's available. People type it by default. - Keep it short, easy to spell and without hyphens.
- Turn on WHOIS privacy so your name and address aren't public. Most registrars include it free.
- Turn on auto-renew. Losing a domain because a card expired is common and painful.
You can buy the domain from your host or from a separate registrar such as Namecheap. Buying both in one place is simpler. Keeping them separate means you can switch hosts without touching the domain. Our Hostinger vs Namecheap comparison covers both.
Step 4: Buy a hosting plan
For a first site, a cheap shared plan is enough. Here's how Hostinger's plans look, since that's the host we cover most on this site:
| Plan | Intro price (48 months) | You pay today | Renews at | Sites | Good for |
|---|---|---|---|---|---|
| Premium | $1.99/mo | $95.52 | $10.99/mo | 3 | One to three small static or WordPress sites |
| Unlimited | $2.79/mo | $133.92 | $16.99/mo | Unlimited | Several sites, daily backups, Node.js apps |
| Cloud Startup | $7.99/mo | $383.52 | $25.99/mo | Unlimited | Stores, busier sites, up to 10 Node.js apps |
Prices from hostinger.com as of November 2026, during a sale. Check the checkout before you pay.
What to watch on any host:
- Term length. The lowest monthly price needs a 2–4 year prepayment. You pay the whole term upfront.
- Renewal price. It's often 3–5 times the intro price.
- Pre-ticked extras at checkout. Read every box.
- Refund window. Hostinger offers 30 days.
Plans of 12 months or longer at Hostinger include a free domain for year one, free SSL and email on your domain. Our Hostinger review goes deeper into each plan.
Step 5: Point your domain to your hosting (DNS basics)
DNS is the internet's address book. It tells browsers which server holds the site for your domain. If you bought the domain and hosting from the same company, this is usually done for you. If not, you have two options.
Option A: change the nameservers. At your registrar, replace the nameservers with the ones your host gives you (something like ns1.yourhost.com). The host then manages all DNS records. This is the easiest route.
Option B: add records yourself. Keep DNS at your registrar and add the records your host lists:
| Record | What it does | Example |
|---|---|---|
| A | Points the domain to a server IP | @ → 203.0.113.10 |
| CNAME | Points a subdomain to another name | www → yoursite.com |
| MX | Sends email to your mail provider | @ → mx1.yourmail.com |
| TXT | Proves ownership, sets email security | v=spf1 include:... |
Changes usually work within an hour or two. Full propagation can take up to 48 hours. Delete old A records from a previous host, or some visitors will see the old site.
If you're connecting a domain to a builder like Lovable, Framer or Wix, you'll use the same A and TXT records. Our Lovable custom domain guide shows that case step by step.
Step 6: Turn on SSL
SSL makes your address start with https and shows the padlock in the browser. Without it, Chrome marks the site as "Not secure", and Google ranks it lower.
Most hosts now issue a free certificate automatically once the domain points to them. At Hostinger it's included on every plan. If the padlock doesn't appear after a few hours, open the SSL section of your panel and install it manually, then turn on "Force HTTPS" so visitors on http get redirected.
Step 7: Upload your site
How you upload depends on what you built.
Static HTML site. Open the File Manager in your control panel, go to the public_html folder and upload your files. The homepage must be called index.html. For bigger sites you can use an FTP app like FileZilla with the login from your panel.
WordPress. Use the one-click installer. You get an admin login, pick a theme and start adding pages. No uploading needed.
A project from an AI tool. If it's a React or Vite project, run npm run build and upload the contents of the dist folder, or connect the GitHub repository as a Node.js web app so it redeploys on every push. On Hostinger, Node.js apps run on the Unlimited and Cloud plans. Our guide to publishing a site you built with AI covers each tool.
Then open your domain in a private browser window, click every link, and check the site on your phone.
How much it really costs
Here's a realistic first-year and second-year budget for one small site on shared hosting:
| Item | Year one | Year two onward |
|---|---|---|
| Shared hosting (Premium, 48-month term) | about $24 | about $24 (locked in until month 48), then $10.99/mo |
Domain (.com) | Free with plan | about $20/yr |
| SSL | Free | Free |
| Email on your domain | Free for one year | Paid, or use a separate provider |
| Total | about $24 | about $44/yr until renewal |
On a 12-month term the hosting costs more each month but the upfront payment is smaller. When the long term ends, budget for the renewal price, about $132 a year for Premium. Our Hostinger coupon guide explains how to keep that number down.
Common beginner mistakes
- Buying a VPS for a five-page site. Shared hosting is enough and far less work.
- Forgetting the renewal date. Put it in your calendar a month before.
- Uploading files to the wrong folder. The site must sit inside
public_html, not in a subfolder. - No backups. Check whether your plan backs up daily or weekly, and download a copy yourself after big changes.
- Using the email that came with the plan as your only inbox without checking what it costs after year one.
Quick checklist
- Know what you built: static, WordPress, Node.js or builder.
- Pick the hosting type that fits it.
- Buy a domain with auto-renew and privacy on.
- Buy hosting, reading the renewal price and every checkbox.
- Point DNS to the host.
- Turn on SSL and force HTTPS.
- Upload or install the site, then test it on desktop and phone.
If you still need a site to put online, our animated landing page prompts give you a ready design you can generate with an AI tool and host the same day.