Skip to main content
๐ŸŽจ CSS Basics

Background color ๐ŸŸฆ

color paints the text. background-color paints the area behind it โ€” like a highlighter under the words.

.card { background-color: black; }

Your task

Give .card a blue background. Drag the blocks in, or type the line.

๐Ÿ’ก Just like color, the browser repeats the background back as rgb(...), so blue becomes rgb(0, 0, 255). Same color, browser handwriting. ๐Ÿค

โšก 25 XP

Hints

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