Buttons (button)
An HTML element that creates a clickable button. The type attribute controls its behaviour: submit, reset, or button.
What it does: The button here has no type, so it defaults to submit - clicking it will send the form. Always specify type to be safe. HTML tag names must be lowercase. <BUTTON> is non-standard - use <button>. type="button" creates a button that does nothing by default. It is typically used with JavaScript event handlers. 'none' is not a valid type value. All attribute values must be in double quotes. type=submit without quotes is invalid HTML.
Common mistakes: HTML tag names must be lowercase. <BUTTON> and </BUTTON> should be <button> and </button>. The type attribute value must be in double quotes: type="submit", not type=submit without quotes.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
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
<button>Fill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →