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

Your First Web Page with HTML

In this lesson you learn how web pages are built using HTML tags. You use blocks to create a page with headings, paragraphs, lists and links, then check the real code to see the tags behind each part.

Teacher Class Feed

Load previous activity

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

    Illustration for Start: what we're buildingEvery page you open in a browser is built from a language called HTML. Today you build a web page one piece at a time, and after each piece you read the HTML that piece just wrote.

    By the end you will have a page with a heading, two paragraphs, a list and a link, and you will be able to name the tag behind each one.

    Getting started

    There is nothing to install and nothing to sign in to. The Web Page Builder is on this page, further down, and your page saves by itself as you work. Scroll to the first build step and it is there waiting.

    2 - What a Web Page Is Made Of ~4 mins

    HTML marks up text to say what each part is. A tag wraps the text and names it: this bit is a heading, this bit is a paragraph.

    Key point

    Tags come in pairs. The opening tag turns something on, the closing tag turns it off, and the closing one carries a slash.

    One tag pair taken apart: the opening tag h1 turns the heading on; the text, All About Cats, is what the page shows; the closing tag, with a slash before h1, turns it off.

    Here is a whole small page:

    <h1>All About Cats</h1>
    <p>Cats are soft and they like to sleep.</p>
    <ul>
      <li>They purr</li>
      <li>They nap a lot</li>
    </ul>

    3 - Add a Heading ~5 mins

    Open the builder below. You start with an empty page called Home.

    1. In the block palette down the left, click Content, then drag a heading block onto your page. Type a title in it: a hobby, a sport, or a place you know.
    Predict, then check

    Before you look: what do you think the tag will be called? Then open the HTML tab and find it.

    Here is the block you added, and the tag it wrote:

    {"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_heading", "fields": {"TEXT": "My Favourite Animals", "ALIGN": "left"}, "x": 10, "y": 10}]}}

    <h1>My Favourite Animals</h1>

    Web Page Builder

    4 - Add Two Paragraphs ~5 mins

    Keep working on the same page. It carries on from the last step.

    1. From Content, drag two text blocks under your heading. Put one sentence in each, saying something real about your topic.
    Predict, then check

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

    Here are your two blocks, and the two tags they wrote, one each:

    {"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_text", "fields": {"TEXT": "Cats are soft and they like to sleep.", "SIZE": "normal", "ALIGN": "left"}, "next": {"block": {"type": "wp_text", "fields": {"TEXT": "My favourite one is a ginger cat called Ollie.", "SIZE": "normal", "ALIGN": "left"}}}, "x": 10, "y": 10}]}}

    <p>Cats are soft and they like to sleep.</p>
    <p>My favourite one is a ginger cat called Ollie.</p>

    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