Forms: input, label, button: Coding lesson for kids
In “Forms: input, label, button”, children learn about <label for="name">Name:</label> <input id="name" type="text"> and <button type="button">Submit</button>.
<label for="name">Name:</label> <input id="name" type="text">: The "for" on the label must match the "id" on the input — that connection is what makes the label work for screen readers and focus.
<button type="button">Submit</button>: A clickable button — type="button" means it will not accidentally submit a form without JavaScript.
This lesson is part of HTML/CSS in Coding at Pearls Valley Academy — Build and style your first web page.
Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.