HTML
Intermediate
40 mins
Teacher/Student led
+140 XP
Pupils work on their own device

Adding Images and Structure

Build on a previous web page by adding subheadings, sections, images and a divider. Create a second page and link to it with a button. Predict the HTML tags used for each element before checking them.

Teacher Class Feed

Load previous activity

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

    Illustration for Start: what we're buildingYour page has a heading, some writing and a list. Today you give it real structure: sections with their own subheadings, a picture that sits with the section it belongs to, and a second page you can click through to.

    Getting started

    Open the builder further down and carry on with the site you built last lesson. It is already there.

    2 - How a Page Gets Structure ~4 mins

    Key point

    A big heading names the whole page. A subheading names one section inside it.

    Illustration for How a page gets structureThat difference is the whole idea of structure: a reader can skim the subheadings and know what is there.

    The page this lesson builds, each part labelled with its tag: h1 names the whole page, All About Cats; h2 names one section, What they eat; p is the writing in it; img is the cat picture sitting with its section; hr is a line between sections; another h2 names the next section, Where they sleep.

    Notice the two different tags below, and that a picture tag is the odd one out: it has no closing tag, because there is no text to wrap.

    <h1>All About Cats</h1>
    <h2>What they eat</h2>
    <p>Mostly fish, in my experience.</p>
    <img src="cat.svg" alt="A cat">

    3 - Add a Subheading ~5 mins

    Carry on with your site in the builder below.

    1. In the block palette down the left, click Content, then drag a subheading block onto your page. Name a section of your page in it.
    2. From Content again, drag a text block underneath it and write a sentence or two.
    Predict, then check

    What will the tag be called? Then open the HTML tab and check.

    Here are your two blocks, and the tags they wrote. A subheading is not a heading:

    {"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_subheading", "fields": {"TEXT": "What they eat", "ALIGN": "left"}, "next": {"block": {"type": "wp_text", "fields": {"TEXT": "Mostly fish, in my experience.", "SIZE": "normal", "ALIGN": "left"}}}, "x": 10, "y": 10}]}}

    <h2>What they eat</h2>
    <p>Mostly fish, in my experience.</p>

    Web Page Builder

    4 - Put a Picture in Its Section ~5 mins

    A picture belongs with the thing it shows, not floating at the bottom of the page.

    1. From Content in the palette, drag a picture block and drop it underneath one of your sections. Choose a picture from its dropdown.
    2. Check the preview: does it sit with the right section?
    3. Find its tag in the HTML tab.

    Here is your picture block, and its tag. It carries two pieces of information inside it, and it closes itself:

    {"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_picture", "fields": {"IMG": "cat"}, "x": 10, "y": 10}]}}

    <img src="cat.svg" alt="A cat">

    Web Page Builder

    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 - 2026. 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