Skip to main content
HTML Code Completion Easy +10 XP

Checkbox Input

Complete the checkbox input type.

HTMLFill in the blank
<input type="___" name="agree" value="yes">

Type the missing code

Show answer and explanation

Answer: checkbox

type='checkbox' creates a checkable box. When checked and the form is submitted, its value is included in form data.

Hint: What input type creates a tick-box?

What this challenge tests

Code Completion in HTML: forms, inputs.

Related challenges