CSS Basics
HTML & CSSMake the web beautiful. Learn to style HTML with colors, fonts, spacing, borders, and modern layout using flexbox.
Your progress
0/11 complete
- 1โก 10
What Is CSS? ๐จ Quiz
CSS is how you give a web page its colors, fonts, and style.
- 2โก 10
Anatomy of a Rule ๐ Quiz
Learn the four parts of every CSS rule before you write one.
- 3โก 20
Text color ๐ด
Paint your text with the color property.
- 4โก 10
Predict the Color ๐ฎ Quiz
Read a CSS rule and guess what the page will look like.
- 5โก 20
Font size ๐
Make text bigger or smaller.
- 6โก 20
Text alignment ๐ฏ
Center or align your text.
- 7โก 25
Background color ๐ฆ
Fill an element's box with color.
- 8โก 30
Padding & margin ๐ฆ
Add space inside and around a box.
- 9โก 25
Borders ๐ซ
Outline a box with a visible edge.
- 10โก 40
Centering with flexbox ๐ฏ
The modern way to center anything โ one property at a time.
- 11โก 40
Style a button โจ
Combine everything into a polished button.