What is CSS — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the What is CSS lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Write your first rule
easy10 minMake the #title blue.
- 2
Change a background
easy10 minGive #wrap a #f5f5f5 background.
- 3
Resize some text
easy10 minMake #text 20px.
- 4
Add a border
easy10 minGive #wrap a 2px solid black border.
- 5
Style a small page
medium10 minBlue heading, 20px body text, padded wrapper.
Find the bug(5)
- 1
Fix the missing selector
easy8 minA rule needs a selector before its braces.
- 2
Fix the wrong property
easy8 minAn element's fill is set with background-color.
- 3
Fix the missing unit
easy8 minA font size needs a unit.
- 4
Fix the border with no style
easy8 minA border needs a style to be drawn.
- 5
Fix the rule on the wrong element
easy8 minThe heading should be blue, not the paragraph.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace