Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 10: Utilizing Forms with JavaScript!

Instruction

Checkbox

A checkbox is created using the <input> element with a type attribute set to the value checkbox.

<input type="checkbox" id="questionOne" name="subscribe" value="yes" checked />

Related checkbox items should use the same name attribute. Including the checked attribute makes the checkbox checked automatically when the page loads. Clicking the checkbox or its associated label...