Color Tutorials

Nine short tutorials, each with a live demo and copyable code: HTML text, link, and background color; CSS color basics, text, link, background, and placeholder color; and SCSS color variables.

Step-by-step color guides with live demos — pick a color, see the code update, and copy it into your own page. No sign-up, no setup: every demo runs in your browser.

Color basics in HTML

The quickest way to set a color: the style attribute on an element. Three short tutorials, one per property.

Getting started with CSS

The same ideas as stylesheet rules — how real pages do it. One rule colors every matching element, and you change it in one place.

Advanced SCSS techniques

For larger projects, where one color lives in fifty rules and a rebrand should mean editing one line.

Frequently asked questions

Where should I start with color in HTML and CSS?

Start with the HTML basics: HTML Text Color, then HTML Link Color and HTML Background Color. Then move to the CSS guides — CSS Color Basics, CSS Text Color, CSS Link Color, and CSS Background Color — and finish with the SCSS variables tutorial when you want a maintainable palette.

What is the difference between the HTML and CSS tutorials?

The HTML tutorials show the quickest way to set a color — the style attribute on an element. The CSS tutorials show the same ideas as stylesheet rules, which is how real pages do it: one rule colors every matching element, and you change it in one place.

Do I need to install anything to follow these tutorials?

No. Every tutorial has a live demo that runs in your browser — pick colors, see the code update, and copy it into your own page. Only the SCSS tutorial needs a tool (the Sass compiler) if you want to compile .scss files yourself.

Related tools

Color Picker · CSS Color Basics · What Is a Hex Code? · How to Pick Colors for a Website · Contrast Checker