Advanced
60 mins
Teacher/Student led
+70 XP

Write Some HTML Yourself

In this lesson you will type HTML code by hand on a practice page. You will change text inside tags, add new tags, put one tag inside another, and fix errors when the page breaks.

Teacher Class Feed

Load previous activity

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

    Key point

    Today you type real HTML yourself.

    Tip

    You will work on a small practice page, not the site you finished. That site stays safe.

    You will change tags, write a new tag, put one tag inside another, and fix a tag when it breaks.

    2 - Code You Can Type ~5 mins

    Until today, blocks wrote the HTML for you. You read it in the HTML tab.

    Key point

    Today you type in that tab yourself.

    A tag is a short code marker. Most tags come in pairs: one to open and one to close. The closing tag has a slash, like this:

    <p>These words show on the page.</p>

    The words between the tags are what the visitor sees.

    Two important warnings.

    1. This lesson opens a small practice page only. It is not your finished site.

    Watch out

    2. Leave go back to blocks alone unless your teacher says otherwise. That button throws away what you typed.

    3 - Open the Practice Page and Read the HTML ~6 mins

    Open the interactive activity.

    You should see a small practice page called Practice, with a heading, two sentences and a picture.

    Note

    This is not your finished site. It is a page just for today's typing.

    Click the HTML tab.

    Find these parts in the code:

    • a line with <h1> and </h1> around the heading
    • two lines with <p> and </p> around the sentences
    • a line that begins like <img (that is the picture)
    Key point

    Do not type anything yet. Just read and point to each part on your screen.

    Interactive activity

    4 - Change the Words Inside a Tag ~6 mins

    Stay on the HTML tab.

    Find the heading line. It looks like this:

    <h1>My Favourite Pet</h1>

    Click between <h1> and </h1>.

    Key point

    Delete the old words and type a new heading of your own. Keep the tags. Only change the words in the middle.

    Before you open the Your web page tab, pause. What do you think will change on the page?

    Now open Your web page. Was your prediction right?

    Next, change the words inside one of the <p>...</p> tags the same way.

    Check the page again.

    Note

    If a notice appears about the code now driving the page, that is meant to happen. You are typing real HTML.

    Interactive activity

    5 - Type a Whole New Tag ~6 mins

    Stay on the HTML tab.

    Click at the end of the last paragraph line. Press Enter to make a new empty line.

    Type this whole tag yourself, carefully:

    <p>I am typing this tag myself.</p>

    Check every character: opening tag, your sentence, closing tag with a slash.

    Tip

    Tip: to type < and >, hold Shift and press the comma or full-stop key. Check you have both angle brackets, and a / in the closing tag.

    Tip

    If typing the whole line feels hard, copy the example above, paste it onto your new line, then change the words in the middle to your own sentence.

    Open the Your web page tab. Your new sentence should show on the page.

    If it does not, compare your line to the example and fix any missing piece.

    Interactive activity

    DigitalSkills.org · 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 DigitalSkills.org 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