What are the potential pitfalls of using checkboxes instead of radio buttons in form design?

Using checkboxes instead of radio buttons in form design can lead to users selecting multiple options when they should only be able to select one. This can result in inaccurate data being submitted. To solve this issue, ensure that radio buttons are used when only one option should be selected.

<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female
<input type="radio" name="gender" value="other"> Other