在HTML中(zhong),何输要输入钩,入钩可以使用(yong)<input>标签的何输type属性设置为checkbox,以下是(shi)入钩一个简单的示例:(图片来源网络,侵删)
<!DOCTYPE html><html><head><meta charset="utf8"><title>输入钩示例</title></head><body><h1>选择你喜欢的何输水果:</h1><form> <input type="checkbox" id="apple" name="fruit" value="apple"> <label for="apple">苹果(guo)</label><br> <input type="checkbox" id="banana" name="fruit" value="banana"> <label for="banana">香蕉</label><br> <input type="checkbox" id="orange" name="fruit" value="orange"> <label for="orange">橙子</label><br> <input type="checkbox" id="grape" name="fruit" value="grape"> <label for="grape">葡萄</label><br> <input type="checkbox" id="watermelon" name="fruit" value="watermelon"> <label for="watermelon">西瓜</label><br></form></body></html>
在这个示例中,我们创建了一个包含五个复选框的入钩表单,分别表示不同的何输水果,用户可以通过勾选相应的入钩复选框来选择他们喜欢的水果。

