Skip to main content

How to build a website from scratch

person typing at laptop on desk
(Image credit: Unsplash)

Creating a new website can be daunting, particularly if you’re trying to get a business started at the same time. A website is vital to online success, so it really does pay to get it right from the start through to publication. But where do you start, and how do you build a website from scratch?

In this walkthrough, we’ll cover website building options, and provide an example of how to build a website from scratch using Squarespace, one of the best website builders available. 

10 tips for building your first website

Step 1: Deciding on a site-building method

Shopify's homepage

Shopify is a popular content management system for online stores (Image credit: Shopify)

Your choice when it comes to creating a site will depend on how much time you have to spare, and how much you’re willing to spend. 

When you build a website from scratch, that can mean writing every line of HTML, CSS, and JavaScript code by hand, but unless you’re a computer science student interested in learning every detail, this is too slow. Knowledge of site development is useful, but there’s little point re-inventing the wheel.

Another option is using a content management system (CMS) like WordPress, Joomla, Drupal, Magento, or Shopify. You install the CMS on your web hosting space, and it gives you a framework to build a website on. CMSs are increasingly versatile, but each one usually has strengths suiting it to certain industries. For ecommerce websites, for example, Shopify is great and an industry leader.

The most versatile option however is using a website builder. These allow you to create any type of site without touching a line of code. The best website builders do let you add your own code if you want something specific, though. Top choices include Weebly, Wix, and Format, but her, we’ll look at Squarespace. Other builders follow a similar process: they just have different interfaces.

Step 2: Choose a site category

Squarespace's webpage asking site questions ahead of building a website

Enter details of your business to get a customized site to build upon (Image credit: Squarespace)

Like most website builders, Squarespace has an on-boarding wizard that enables you to set up your site with a default look and feel that matches your industry. Choose a site category by describing your business, or selecting from the list.

You’ll also be asked about your top goals for your site. The selections you make will populate your website with a few default options. For example, if you select that you want to collect donations online, your site will start with a donation button.

Step 3: Select a template

Squarespace's webpage for its website templates

Choose a template to start creating your website (Image credit: Squarespace)

Choose from the list of designs: there are hundreds of templates to look through and select from. This template will be a framework for your website, but you can change all text, images, and pages.

Step 4: Create an account and name your website

Squarespace's account creation webpage options

Create a free account with Squarespace (Image credit: Squarespace)

If you don’t already have a Squarespace account, it’s time to sign up. You can use Google, Apple, or Facebook logins, or sign up with your email. Another wizard will take you through the steps of naming your site once you’ve signed up.

Step 5: Change fonts, colors, and animations

Squarespace's website editor in use

When you set the color palette for your website, it updates across the entire site (Image credit: Squarespace)

Squarespace’s tools are found on the left-hand side of the page. Click on "Design", and explore the options available. Changes here are global, so they’ll be reflected on all pages. You can choose a new color palette, the global text types of your site, and the animation style of site elements as they appear on the page.

If you want to, you can change the style and shape of buttons, the look and feel of your site’s products, and the 404 page that visitors see if they arrive at a page that doesn’t exist. There’s a huge list of customization options, and you can use custom CSS if you need to make style changes that aren’t available in the Squarespace interface.

When you’re happy with the changes you’ve made, click "Save".

Step 6: Edit the site header

Squarespace's website editor in use

Using your own logo in the site header gives your website more personality (Image credit: Squarespace)

On any page, click on "Edit", move your mouse to the top of the page, and choose "Edit Site Header". Here, you can upload your own logo and change the title of your site. You can also choose the elements that appear in your header. Note that in our example, because we specified that we wanted to take donations online, the header has already been populated with a "Donate" button.

Step 7: Replace text and images

Squarespace's website editor in use

You can add captions to images in Edit mode (Image credit: Squarespace)

Browse through your entire website, and click "Edit" on each page you want to change. In edit mode, you can click on any text, image, or page element to edit it. You can change the style and formatting of text, and replace the template images with your own. 

Squarespace has a built-in image editor that you can use to adjust the brightness, contrast, and saturation of images. It’s also easy to choose different layouts, such as collages or lightboxes.

Step 8: Add and remove pages

Squarespace's website editor in use

It’s easy to add and remove pages from your website (Image credit: Squarespace)

By clicking on the Pages menu item, you can add new pages to your site. You don’t have to start with a blank page either. You can add a designer page layout, a blog, a store, a portfolio, or an events page.

Pages can be organized into folders, and you can specify which pages don’t appear on the navigation menu.

Step 9: Set or connect a domain

Squarespace's website editor in use

Our site will be available at permanently (Image credit: Squarespace)

Click on "Settings" and choose "Domains". You’ll see the built-in Squarespace domain where your site is available, even if you don’t own your own domain name yet. Click on your Squarespace domain, and choose a more user-friendly URL for your site. 

You can also buy a top-level domain from Squarespace, transfer your existing domain name to Squarespace, or point your domain name to Squarespace without changing the domain registrar.

Step 10: Publish your website

Squarespace's website builder pricing plans

Squarespace has four plans that start from $12 a month (Image credit: Squarespace)

To publish your website, you need to upgrade to a paid plan. Every website builder has different pricing. Squarespace starts at $12 a month if you pay annually. Payment is made by credit card. 

Once you’ve paid, your website can be published by clicking on "Settings" and choosing "Public" from the Site Availability menu.

How to build a website from scratch: Summary

There's more than one way to build a website from scratch. One of the easiest, fastest, and most versatile methods is using a website builder. We showed you how to get a site online quickly by using Squarespace, but there are many other top website builders you can use. Try out a few, and see which feels the most intuitive.

Further reading on website builders

Make sure to read our Squarespace review to learn more, and read our comparison features pitting it against competitors, including Wix vs Squarespace vs Weebly, and WordPress vs Wix vs Squarespace. We also put together a list of 10 tips for building your first website, a complete guide to making a website accessible,

Richard Sutherland

Richard brings over 20 years of website development, SEO, and marketing to the table. A graduate in Computer Science, Richard has lectured in Java programming, and has built software for companies including Samsung and ASDA. Now, he writes for TechRadar, Tom's Guide, PC Gamer, and Creative Bloq.