Tutorial series

How To Build a Website With CSS

How To Build a Website With CSS
<- Back to all series

Author(s)

Erin Glass

By Erin Glass

Senior Manager, DevEd

Introduction

Introduction

This project-based tutorial series will introduce you to Cascading Style Sheets (CSS), a stylesheet language used to control the presentation of websites, by building a personal website using our demonstration site as a model. Though our demonstration site features Sammy the Shark, you can switch out Sammy’s information with your own if you wish to personalize your site.

Gif of CSS demonstration site

Alongside HTML and JavaScript, CSS is one of the core technologies of the World Wide Web. If you have some understanding of HTML and are looking to grow your front-end development skills, learning CSS is a great next step.

The first half of this tutorial series will introduce CSS through hands-on exercises and the second half of the tutorial series will provide steps for recreating the demonstration website. If you want to start building the demonstration website right away, you can start with the tutorial How To Set Up Your CSS and HTML Website Project and proceed from there.

By the end of this CSS tutorial series, you will have files ready for deploying a website to the cloud, as well as an understanding of how to continue modifying the site’s design with HTML and CSS. You will also have a foundation for learning additional front-end web development skills (such as JavaScript) and frameworks (like Tailwind).

Prerequisites

  • A code editor like Visual Studio Code or Atom. This series will use Visual Studio Code as our default code editor but you may use any code editor you like. Certain instructions may need to be slightly modified if you use a different editor.

  • A web browser like Firefox or Chrome. This tutorial series will use Firefox as our default browser but you may use any browser you like. Certain instructions may need to be slightly modified if you use a different web browser.

  • Two different profile photos, images, or avatars for personalizing your site (optional).

  • Familiarity with HTML. If you aren’t familiar with HTML or would like a refresher, you can follow the first ten tutorials of our series How To Build a Website With HTML before starting this series.

Once you have your prerequisites ready, you will be ready to start your CSS website project in the tutorials ahead.

Tutorials in series

Tutorial

A Brief Introduction To CSS

Tutorial

How To Set Up Your CSS and HTML Practice Project With a Code Editor

Tutorial

How To Understand and Create CSS Rules

Tutorial

How To Declare Values For Multiple Properties In a CSS Rule

Tutorial

How To Style Images With CSS

Tutorial

How To Create Classes With CSS

Tutorial

How To Create IDs with CSS

Tutorial

How To Create Pseudo-classes With CSS

Tutorial

How To Style the HTML <div> element with CSS

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.