Skip to main content
โ† All courses
๐ŸŽจ

CSS Basics

HTML & CSS

Make the web beautiful. Learn to style HTML with colors, fonts, spacing, borders, and modern layout using flexbox.

Your progress

0/11 complete

Start โ†’ What Is CSS? ๐ŸŽจ
  1. 1

    What Is CSS? ๐ŸŽจ Quiz

    CSS is how you give a web page its colors, fonts, and style.

    โšก 10
  2. 2

    Anatomy of a Rule ๐Ÿ”Ž Quiz

    Learn the four parts of every CSS rule before you write one.

    โšก 10
  3. 3

    Text color ๐Ÿ”ด

    Paint your text with the color property.

    โšก 20
  4. 4

    Predict the Color ๐Ÿ”ฎ Quiz

    Read a CSS rule and guess what the page will look like.

    โšก 10
  5. 5

    Font size ๐Ÿ” 

    Make text bigger or smaller.

    โšก 20
  6. 6

    Text alignment ๐ŸŽฏ

    Center or align your text.

    โšก 20
  7. 7

    Background color ๐ŸŸฆ

    Fill an element's box with color.

    โšก 25
  8. 8

    Padding & margin ๐Ÿ“ฆ

    Add space inside and around a box.

    โšก 30
  9. 9

    Borders ๐ŸŸซ

    Outline a box with a visible edge.

    โšก 25
  10. 10

    Centering with flexbox ๐ŸŽฏ

    The modern way to center anything โ€” one property at a time.

    โšก 40
  11. 11

    Style a button โœจ

    Combine everything into a polished button.

    โšก 40