语句()用于在HTML表单中添加默认选中的复选框。A.<input type=r

免费题库2022-08-02  51

问题 语句()用于在HTML表单中添加默认选中的复选框。A.<input type=radio name=s checked>B.<input type=radio name=s enabled>C.<input type=checkbox name=s checked>D.<input type=checkbox name=s enabled>

选项 A.<input type=radio name=s checked>
B.<input type=radio name=s enabled>
C.<input type=checkbox name=s checked>
D.<input type=checkbox name=s enabled>

答案 C

解析 HTML表单(Form)常用控件有:
·input type="text":单行文本输入框
·input type="submit":将表单(Form)里的信息提交给表单里action所指向的文件
·input type="checkbox":复选框
·input type="radio":单选框
·select:下拉框
·textArea:多行文本输入框
·input type="password":密码输入框(输入的文字用*表示)
演示示例:
复选框允许用户在一组选项里,选择多个。示例代码:
<input type="checkbox" name="fruit" value ="apple">苹果<br>
<input type="checkbox" name="fruit" value ="orange">桔子<br>
<input type="checkbox" name="fruit" value ="mango">芒果<br>
用checked表示缺省已选的选项。
<input type="checkbox" name="fruit" value ="orange" checked>桔子<br>
转载请注明原文地址:https://www.tihaiku.com/congyezige/2432547.html

最新回复(0)