Intermediate
60 mins
Teacher/Student led
+70 XP

Ask Your Visitor Something

Pupils build a web page where visitors type answers into a text box and add them to a list using a button. They add and name the blocks, connect them with an action, test it, and personalise the page.

Teacher Class Feed

Load previous activity

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

    You already know how to make a page count something when a visitor uses a button.

    Today your page will ask a visitor something. They type an answer, press a button, and their words join a list on the page.

    Key point

    By the end you will have a text box, a list box and a button that joins the two together.

    2 - A Page That Asks ~5 mins

    A web page can do more than show words. It can ask a visitor to type something.

    Three Apps pieces work together:

    • A text box is the place the visitor types.
    • A list box is where each answer appears in a list.
    • An Apps button (the one that runs actions) adds the typed words to the list.
    Key point

    Inside that button sits one small action block: add text box to list box. That action is the glue.

    You will build the pieces in that order: text box first, then list box, then the button and its action.

    3 - Add a Text Box ~6 mins

    Open your site in the interactive. Go to the page where a visitor should type something.

    Use your second page, or any page where a visitor should type. If you still have a page called Ideas, use that.

    From Apps, drag a text box block onto that page.

    Select the text box block.

    Set its name to hobby.

    Set its placeholder to Type a hobby idea.

    Note

    The placeholder is the pale writing a visitor sees before they type. It tells them what to write.

    Interactive activity

    4 - See the Text Box on Your Page ~3 mins

    Open the Your web page tab.

    Find the text box on your page. You should see the pale placeholder writing inside it.

    Select inside the text box and type a word, just to try it.

    Tip

    The word sits there. It does not join a list yet. That is fine. The list and the button come next.

    Clear the word again so the box is ready.

    Interactive activity

    5 - Add a List Box ~6 mins

    Go back to the Blocks tab.

    From Apps, drag a list box block onto the same page as your text box.

    Watch out

    Use list box from Apps, not the ordinary list block.

    Snap it under the text box so the list will show below where people type.

    Select the list box block.

    Key point

    Set its name to list.

    Open the Your web page tab. You should see an empty list waiting under the text box.

    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