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, soredbecomesrgb(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.