Basic syntax: <input type="checkbox" name="checkboxName" value="checkboxValue">">

What is the correct HTML for making a checkbox?

The correct HTML for creating a checkbox input element is to use the <input> element with its type attribute set to "checkbox".

Basic syntax: <input type="checkbox" name="checkboxName" value="checkboxValue">

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free