Web Design

How to Create a Website from Scratch, and What "From Scratch" Really Asks of You

"From scratch" can mean picking a template or typing every line of code yourself. This guide separates the four routes, shows what you make by hand in each, walks through eight steps with a pass test for every one, and reports what happened when we built a small three-page site from an empty folder.

How to Create a Website from Scratch, and What "From Scratch" Really Asks of You

Key takeaways

  • Pick the route before the tool. A website builder, WordPress, an AI coding tool and hand-written code ask for very different amounts of your time and leave you with different things to look after.
  • The domain is the one cost almost everyone pays. Porkbun listed .com at $11.81 when we checked on 26 November 2026.
  • A real site can be tiny. Our three-page test site is four files, 3,011 bytes before compression, with two requests per page and no sideways scrolling at 390 pixels wide.
  • Free hosting has terms. GitHub says Pages is not for running an online business, so read the rules before you put a company site there.
  • Publishing is not the finish. A form that reaches your inbox, a secure address and a page Google may index are separate checks.

The short answer

To create a website from scratch: write down the one job the site must do, list three to five pages, choose a route, register a domain in your own name, write the words, build the pages, test them on a phone, publish and then tell Google. If you have never done it and need the site for a business, a hosted builder is the shortest path. If you want to learn how the web works, start with plain HTML and CSS, one page at a time. If the site has to earn money from day one and you do not have the hours, hire it out and keep the accounts in your name.

What the top results say, and what they skip

We searched Google (US, English) for "how to create a website from scratch" on 26 November 2026. An AI overview came first, followed by Wix's ten-step guide, a Reddit thread, Google Sites, Canva, Mozilla's MDN lesson, Squarespace's home page and Webnode's guide. We read the Wix and Webnode guides in full and the opening of the MDN module. The other results we saw only as titles and snippets.

  • Wix lists eight ways to build and then ten steps, with its own products as the worked option. It is detailed and clearly a builder company's guide.
  • Webnode (dated 3 June 2026) splits "from scratch" into hand-coded, CMS and builder levels, then walks through its own editor.
  • MDN teaches code. Its first-website module assumes you are comfortable with files and browsers and suggests starting small.

None of the pages we read shows how little a finished hand-made site can be, or reports a measurement from one. That is the part we added, along with a table of what you personally have to produce on each route.

Four routes, and what you make yourself

RouteYou makeSomeone else handlesGood fitWeak point
Hosted website builderWords, photos, page choicesHosting, secure connection, software updatesA first business site with limited timeYou pay a monthly plan and work inside the platform
WordPress on your own hostingWords, photos, theme and plugin choices, updatesThe host runs the serverSites that publish oftenUpdates and security stay on your list
AI coding toolThe brief, checks, fixes, hosting set-upThe tool drafts codePeople willing to test what they cannot yet readOutput can need debugging before it is live
Hand-written HTML and CSSEverything on the pageThe host serves your filesLearners and very simple sitesSlow to learn, and forms need an outside service

Our comparisons of WordPress, Wix and Squarespace and AI website builders go further into those two choices. If money is the limit, read how to make a website for free first, since a free address and platform branding change what visitors see.

Eight steps, each with a test

1. Write one sentence of purpose

"People in my area should be able to ask for a visit" is a purpose. "Have an online presence" is not, because nothing can fail it. Pass test: a friend reads the sentence and can say which button the home page needs.

2. List the pages

Most small service sites start with a home page, a services page and a contact page. Add pages when you have something real to put on them. A sitemap on paper is enough. Pass test: every page answers a question a customer has asked you.

3. Choose the route

Use the table above. Be honest about hours: the learning is the large cost of the code route. Our guide to how long a website takes compares published estimates. Pass test: you can name who will fix the site when something breaks.

4. Register the domain in your own name

Pick something short that you can say aloud without spelling it. Check the renewal price as well as the first-year price. Pass test: the registrar account uses your email address and you can log in today. Moving it later is possible, as our domain transfer guide explains, but it is easier to start in the right place.

5. Write the words before the design

Write the headline, one paragraph per service, the area you cover and how to get in touch. Design built around empty boxes usually gets redone when the real text arrives. Pass test: the home page text alone tells a stranger what you do and where.

6. Build the pages

On a builder, choose a template for its structure, not its stock photos. In code, make one page that works, then copy its header and footer to the others. Keep images small before you upload them, as our image optimization guide shows with measured file sizes. Pass test: every menu link opens the right page.

7. Test on a phone, then with the keyboard

Open each page at phone width. Nothing should scroll sideways, and buttons should be easy to tap. Press the Tab key through the page and check you can see where you are. Pass test: a person who did not build it can send you a message without help.

8. Publish and tell Google

Point the domain at your host, confirm the address loads over HTTPS, then verify the site in Google Search Console and submit the sitemap. Indexing is Google's decision and can take time, and our guide to getting found on Google covers the checks. Run the fuller website launch checklist before you announce the address.

The three-page site we built from an empty folder

To put numbers on the hand-coded route, on 26 November 2026 we made a site for an invented garden care business, Rivera Garden Care, which says in its own footer that it is not real. It has a home page, a services page, a contact page with an email link and one shared style sheet. We opened the files in a headless Chrome browser set to 390 by 844 pixels.

The home page of our three-page test site at phone width, showing the business name, three menu links, a large headline and a dark button
Our test site at 390 pixels wide, captured on 26 November 2026. The business is invented.
What we measuredResult
Files4 (three HTML pages and one style sheet)
Total size, uncompressed3,011 bytes
The same text compressed together with gzip1,029 bytes
Requests to load a page2 (the page and the style sheet)
Page width at a 390 pixel screen390, so no sideways scroll
JavaScript usedNone
Images, web fonts, formsNone

Read the last row carefully. The site is small partly because it leaves things out. Photos will add most of the weight on a real site, and a contact form needs a service to receive it, because a plain file host only sends files. We did not publish this test site, did not time the work and did not test it on a physical phone, so the figures say nothing about speed over a real network.

Four lines did most of the work for phones and accessibility: the viewport tag that tells a phone to use its own width, a maximum text width for comfortable reading, a menu that wraps onto a new line when space runs out and a visible outline on focused links.

What it costs to run

ItemFigureSource, checked 26 Nov 2026
A .com domain$11.81Porkbun's .com page, which says the price stays the same at renewal
Wix paid plansFrom $17 a month in the US, billed annually, so at least $204 a yearWix's own from-scratch guide, which says prices vary by location
Wix free plan$0, with a Wix subdomain and Wix brandingSame guide
Cloudflare Pages free plan500 builds a month, up to 20,000 files per site, 100 custom domains per projectCloudflare's Pages limits page, last updated 19 November 2026
GitHub Pages1 GB published site limit, soft 100 GB monthly bandwidth limitGitHub's Pages limits page

For the hand-coded route, a domain plus a free static hosting plan comes to $11.81 for the year before any paid tools. That excludes your time, which is the real bill. GitHub states that Pages is not intended or allowed to be used as free hosting to run an online business or e-commerce site, so check the current terms against what your site does. Our guide to website hosting cost covers the paid options.

If you choose self-hosted WordPress, ask the host about requirements first. WordPress.org recommends PHP 8.3 or newer, MariaDB 10.11 or newer or MySQL 8.4 or newer, and HTTPS support.

Mistakes that cost a weekend

  1. Buying the domain through a helper's account. You may have to ask for it back later.
  2. Designing before writing. The layout then fights the real text.
  3. Uploading photos straight from the phone. Resize them first.
  4. Assuming the form works. Send yourself a test and find it in the inbox.
  5. Leaving a "hide from search engines" setting on. Builders and WordPress both have one, so check it on launch day.
  6. No backup. Keep a copy of your files, or learn where the restore button is, using our website backup guide.

How we can help at Amariq

If you would like the site designed and built for you, send us the one sentence of purpose and the page list from steps 1 and 2. We quote from that scope, not an hourly rate. Payment is split 40% at the start, 30% when you approve the design and 30% before launch. After the last payment you own the design, copy and code, with the domain, hosting and analytics accounts registered to you. See our web design service or get in touch.

Frequently asked questions

Can I create a website from scratch with no coding?

Yes. A hosted builder lets you assemble pages by choosing layouts and typing your text. You still decide the structure, write the content and check that everything works.

How much does it cost to create a website from scratch?

It depends on the route. A hand-coded site on a free static host can cost only the domain, $11.81 for a .com at Porkbun on 26 November 2026. A paid builder plan adds a monthly or yearly fee.

Do I need to buy hosting separately?

Not with a hosted builder, which includes it. For WordPress or hand-written files you choose a host yourself.

Can I build a website from scratch for free?

You can publish on a free builder plan or a free static host, usually on the platform's own address or with its limits. Read the terms before using a free plan for a business.

Is hand-coding worth learning for one business site?

If you enjoy it and the site is simple, it can be. If the goal is a working site this month, a builder or a hired studio usually gets there sooner.

Which pages should a new website have?

Start with home, services or products, and contact. Add an about page, and a privacy page if you collect personal information. This is not legal advice, so check the rules where you operate.

Can AI build the website for me?

AI tools can draft text, layouts or code. You still need to check facts, test the forms and handle the domain and hosting unless the tool includes them.

Rahat Khondokar, founder of Amariq

Rahat Khondokar

Founder & CEO, Amariq

Rahat designs and builds websites for marketing teams and ecommerce brands, and writes here about the structure, copy and conversion work behind them. More about Amariq. Find him on YouTube, Dribbble and LinkedIn.

Keep reading

Related articles.

All articles