Skip to main content
๐ŸŽจ CSS Basics

Text color ๐Ÿ”ด

Time to write your very first CSS! ๐ŸŽ‰ Remember the four parts of a rule: selector, property, value, and the { } braces around them.

h1 { color: blue; }

Read it as: "For every h1, set the color to blue."

Below, the h1 { } rule is empty. You only need to add one line inside the braces. You can drag the blocks in, in order, or type it yourself.

Your task

Make the <h1> red by adding color: red; inside the rule.

๐Ÿ’ก Don't be surprised later: the browser likes to repeat colors back as rgb(...) numbers, so red becomes rgb(255, 0, 0). That's totally normal โ€” it's the same color, just written in the browser's own handwriting. ๐Ÿค

โšก 20 XP

Hints

index.htmliframe
Loading editorโ€ฆ
Preview
Run your code to see test results.