Amigo code

Learn to code › CSS

Learn CSS for beginners.

CSS decides how a web page looks: colours, fonts, spacing and layout. HTML says what is on the page and CSS makes it look good.

What you can make with CSS

Your first CSS program

h1 {
  color: green;
  font-size: 2rem;
}

This rule picks every h1 heading on the page and makes it green and bigger.

CSS lessons, step by step

  1. 1Colours and fonts

    Change how words look.

  2. 2The box model

    Every element is a box.

  3. 3Layout with flexbox

    Put things in a row or column.

  4. 4Layout with grid

    Rows and columns together.

  5. 5Hover and animation

    Make things react and move.

  6. 6Style a card

    Put it all together.

Start the lessons with AmigoTick off each step, ask for a quiz, or have Amigo build an example.

Free books and guides

Projects to build

Tutorials written by other people, listed in Project Based Learning (MIT licence). They open on their own sites.

Other languages