Â
I'm starting to review again the languages that I've learned, starting in HTML. How do I create multiple questions with checkboxes using HTML?
Â
How to Create Check Boxes with HTML?
Hi Patricia,
Here is a sample form with multiple questions and checkboxes.
Checkboxes are mostly used for instances where a user may want to select multiple options.
Â
Â
Â
<form name="myForm" >
Â
Â
<p>Which fruits do you like?</p>
Â
Mango: <input type="checkbox" name="fruit" value="mango" Â /><br />
Â
Banana: <input type="checkbox" name="fruit" value="banana" Â /><br />Â
Â
Orange: <input type="checkbox" name="fruit" value="orange" Â /><br />Â
Â
Apple: <input type="checkbox" name="fruit" value="apple" Â />
Â
<p>Which beverages do you like?</p>
Â
Softdrink: <input type="checkbox" name="beverage" value="softdrink" Â /><br />
Â
Fruit Shakes: <input type="checkbox" name="beverage" value="fruitshake" Â /><br />Â
Â
Beer: <input type="checkbox" name="beverage" value="beer" Â /><br />Â
Â
Juice: <input type="checkbox" name="beverage" value="juice" Â />
Â
Â
Â
</form>
Â