thecodezone.
The Code Zone
Developer Playbook / Project workshops

FREE PLAYBOOK WORKSHOP / HTML & CSS

Build a face.
Keep every stage.

Build a CSS Smiley Face Gallery

Turn a yellow circle into a smile, one feature at a time. Alternate HTML and CSS, copying your own previous face before adding the next feature.

12 guided steps · Five face stages · About 45–60 minutes · No JavaScript or installation needed

This entire workshop is free. Signed out, your code and completed steps stay in this browser. Sign in with your Code Zone website account to save across devices and keep the work on your profile.

Cartoon Rob builds a blank yellow circle, compares copies with one and two eyes, then presents smiles with and without pupils.
Build the structure, copy the previous stage, then style the new feature. Earlier stages remain visible.

WHAT YOU WILL BUILD

One page. Five stages you can compare.

  1. A yellow circle.
  2. A circle with a left eye.
  3. A face with both eyes.
  4. A face with a smile.
  5. A smiling face with pupils.

Every face shares the same stylesheet. Changing the shared face rule changes every circle. New eyes, mouths and pupils appear only in the examples where you add their HTML.

The face uses relative positioning, and its features use absolute positioning. Both eyes share one top position, so they line up naturally.

YOUR COPY-AND-ADD ROUTINE

Copy your work, then build on it.

  1. Copy the previous section, including its heading and face.
  2. Paste it below the next stage’s labeled comment, inside the main gallery.
  3. Give the copy its new stage id and heading.
  4. Add the new feature using the checklist.
  5. Switch to CSS to style that feature.

All stage comments and CSS section comments are provided from Step 1. Keep them and the earlier sections. Copy the section only, not the whole document. Complete code examples are in optional hints; your task is a checklist you turn into code.

YOUR PATH THROUGH THE WORKSHOP

HTML, then CSS. Repeat.

  1. 01
    HTMLCreate the gallery page
  2. 02
    CSSStyle the page
  3. 03
    HTMLBuild the first face
  4. 04
    CSSMake a yellow circle
  5. 05
    HTMLCopy it and add the left eye
  6. 06
    CSSStyle the left eye
  7. 07
    HTMLCopy it and add the right eye
  8. 08
    CSSLine up the right eye
  9. 09
    HTMLCopy it and add the mouth
  10. 10
    CSSTurn the mouth into a smile
  11. 11
    HTMLCopy it and add the pupils
  12. 12
    CSSFinish the eyes

OPTIONAL FINISHING CHALLENGE / NOT GRADED

Give your last face a personality.

After completing the guided steps, keep all five stages and try extra CSS rules that target only stage 5. This is a separate design challenge, not another required checkpoint.

  • Change the final face’s color without changing the earlier circles.
  • Move its pupils so the face looks to one side. Keep each pupil inside its eye.
  • Change its mouth to give it a different expression.
  • Explain why the earlier faces stayed the same and why the pupils move relative to their eyes.

Your earned steps remain saved. The original checks still expect the workshop’s requested values. Share your design and what you changed with the community.