How to create an HTML checkbox with a clickable label?
How can I create an HTML checkbox with a label that is clickable (this means that clicking on the label turns the checkbox on/off)?
Brian H.
answered 06/06/19
Experienced Math, Science, & Web Design Teacher
You can wrap the input inside the label tag like so:
<label><input type="checkbox" name="checkbox" value="value">Text</label>
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.