Interface elements: text boxes and labels
A text box lets the user type in an answer. A label is words on the screen that tell the user what to type (prompt text) or show the result (output text).
Understanding Interface elements: text boxes and labels in Years 5–6 Creating Digital Solutions
What it does: This label joins words with the answer. It shows the result to the user as output text. Good prompt text says clearly what the user should enter. 'Box 1' tells the user nothing. Labels can show results. The user does not type into a label. They just read it. Labels only display words. A text box is the element that accepts typing.
Common mistakes: The words that tell the user what to enter are prompt text, so they belong in a label. A text box is where the user types. It should be: label: "Enter your name". numBox is the text box itself. To use what the user typed you need numBox.text. It should be: out.text = numBox.text * 2.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 31–40) and word search (Modules 21–40).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
text box and labelFill in the Blanks
Spot the Error
Student with a class code? Join your class →