HTML CSS
Beginner
50 mins
Teacher/Student led
+55 XP

Build a Small Website

Students build a small website layout in HTML/CSS — header, content columns and footer — using the PRIMM approach, predicting behaviour before running and debugging their own code.

Teacher Class Feed

Load previous activity

    1 - Start: What We're Building ~5 mins

    Quick recap: last time we styled elements with CSS rules — who can remember how a class in the HTML connects to a style in the CSS?

    Today we're coding in HTML/CSS to build a small website layout: a header at the top, a content area in the middle and a footer at the bottom. We'll work at our devices step by step — predict first, then build, run and fix.

    2 - Predict Before You Run ~10 mins

    Before anyone runs anything, look at what we're about to build and commit to a prediction. When this page runs, what will appear at the top? Where will the columns sit — side by side or stacked? What will be at the bottom?

    Say your prediction to your partner before you press run.

    3 - Introduction ~5 mins

    Websites can come in hundreds of different layouts and in this lesson we will take a look at some of the most common layouts and how to code them in CSS.

    A website is normally broken into the following areas:

    • Header - that contains the logo or branding of the website and the navigation menu. This normally stays the same on each page in the website.
    • Content - that contains the main content of the web page. This changes from page to page on the website.
    • Footer - this normally contains some secondary links such as for social media channels or contact us information.
    Header





    Content




    Footer

    4 - Header ~4 mins

    The header appears at the top of the web page and would normally contain:

    1. The logo or branding of the website. This usually acts as a link to the "homepage" of the website.
    2. The navigation for the website. This will have links to the main areas of the website.

    Here is an example of HTML and CSS that creates a simple header for a website. Take a look at the HTML and CSS code and see how we have used CSS to style the header, brand and menu a.

    5 - Content ~4 mins

    The layout of content on a website can vary from page to page. For example the layout for a page that has a list of products is going to be different from a page an "About Us" page that has text and images.

    Usually though the content area will be broken into one of the following layouts:

    1 column layout
    Header




    Footer
    2 column layout
    Header




    Footer
    3 column layout
    Header




    Footer
    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