Intermediate
40 mins
Teacher/Student led
+80 XP

Styling with CSS

Learn how to change the appearance of your web page using CSS. Adjust colours, fonts and spacing with block controls and then by typing code yourself. See that the content remains unchanged while the style transforms completely.

Teacher Class Feed

Load previous activity

    1 - Start ~4 mins

    Illustration for StartYou already know how to build the bones of a page: headings, paragraphs, lists and pictures. Today you style that page. You will change colours, fonts and spacing, first with the block controls and then by typing the CSS yourself. By the end you will see that the words stay the same while the look of the page changes completely.

    2 - Content and Style ~4 mins

    Content and style

    A web page has two jobs. HTML holds the content: the headings, paragraphs, lists and pictures. CSS holds the style: the colours, fonts, sizes and spacing. Change the CSS and the page looks different, but the words stay exactly the same.

    3 - Hands-on: Style, Then Type ~17 mins

    Open the Web Page Builder. Use your page from earlier sessions if it is there. If not, use the starter page already loaded.

    Phase 1: style with blocks and read the CSS

    1. Change one style with the block controls (start with a page colour).
    2. Open the CSS tab and find the rule that just changed. Name the property (for example background-color, color, font-size or text-align).
    3. Optional: repeat for the font or text size. Checkpoint: name at least one property before you type anything.

    Phase 2: type a colour yourself

    Do not press go back to blocks after you type. It deletes your CSS edits.

    1. Stay in the CSS tab. Find a colour value in a rule (the part after the colon).
    2. Replace it with #1b5e20 for a deep green, or #0d47a1 for a strong blue, and watch the page update. A colour code starts with # and uses six characters (0 to 9 and a to f).
    3. If a rule stops working, compare what you typed with a rule that still works. Check for a missing colon or semicolon, or a colour that is not a real CSS colour.

    Must-do: one hand-typed colour change that works. If you have time, also change a size (keep the unit such as px and only change the number).

    Interactive activity

    4 - Your Turn: Restyle to a Theme ~9 mins

    Stay on your page. Pick a theme and restyle it by typing the CSS yourself. Keep the content. Change only the look. If your page is missing, reopen the builder and load your saved page, or use the starter page.

    Theme ideas:

    • Dark mode: dark background, light text
    • GAA club colours: two strong team colours and a clear heading
    • Calm weather page: soft blues and greys, comfortable reading size
    • Poster style: bold heading, high contrast, generous spacing

    Done looks like this:

    • You have typed or edited at least two CSS properties by hand: the page background and the text colour
    • Optional stretch: also change a heading size or spacing so the whole page feels like one theme
    • If a rule broke, you fixed it by comparing what you typed with a rule that still works
    • Your page is saved so it will still be here next lesson

    Save steps: click Save, check the page name, then refresh and confirm the page reappears.

    A partial theme still counts if you can point to the two properties you changed.

    Interactive activity

    5 - Make Sense ~3 mins

    Pull it together. The HTML still holds the content you built earlier. The CSS holds the look. When you typed in the CSS tab, you were writing the same rules the blocks had been writing for you all along. That is what style separated from content means: one place for the words, another for the colours, fonts and spacing.

    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more