Tutorial series

How To Style HTML with CSS

How To Style HTML with CSS

Introduction

Cascading Style Sheets (CSS) is the styling language of the web, and is used to design and control the visual representation of Hypertext Markup Language (HTML) on a web page. With CSS, you can manage everything from font to layout to animations on your web page. This series will lead the reader through CSS exercises that demonstrate the building blocks of the language and the fundamental design principles needed to make a user-friendly web site.

Tutorials in series

Tutorial

How To Apply CSS Styles to HTML with Cascade and Specificity

Tutorial

How To Select HTML Elements to Style with CSS

Tutorial

How To Style Text Elements with Font, Size, and Color in CSS

Tutorial

How To Work with the Box Model in CSS

Tutorial

How To Use Common Units in CSS

Tutorial

How To Lay Out Text with CSS

Tutorial

How To Use Color Values with CSS

Tutorial

How To Use Links and Buttons with State Pseudo-Classes in CSS

Tutorial

How To Select HTML Elements Using ID, Class, and Attribute Selectors in 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.