niusouti.com

语句(43)用于在HTML表单中添加默认选中的复选框。A.B.语句(43)用于在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>

题目
语句(43)用于在HTML表单中添加默认选中的复选框。A.B.

语句(43)用于在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>


相似考题
参考答案和解析
正确答案:C
解析:form>
  您对哪些运动感兴趣,请选择:br>
  input type="checkbox"name="checkboxl"value="checkbox">跑步
  input type="checkbox"name="checkbox2"value="checkbox">打球
  input typ="checkbox"name="checkbox3"value="checkbox">登山
  input type=”checkbox"name="checkbox4"value="checkbox">健美br>
  /form>
  若允许用户有多项选择的内容,则采用复选框。例如上例中的“您对哪些运动感兴趣?”这个问题,因一个人的兴趣可能是多方面的,所以采用了复选框。
  在input>标记中设定checked参数,则该选框就被默认选中。如本例的第一个单选框(“喜欢”下面那个单选框)就设置为默认选中,这样用户若是想选择“喜欢”的话,就可以不用再选了。当然,若用户要选择“不喜欢”,则只要单击“不喜欢”下的那个单选框,而默认值被自动取消。用同样的方法也可以设置某个复选框为默认被选中。
更多“语句(43)用于在HTML表单中添加默认选中的复选框。A.<input type=radio name=s checked>B.<input t ”相关问题
  • 第1题:

    【多选题】设有以下两行HTML代码: 01 <input name="xm" type="text" /> 02 <input type="password" /> 下列哪些选择器仅可以选择01行标签

    A.input{}

    B.input[name]{}

    C.input[type]{}

    D.input[name=xm]{}

    E.input[name*=xm]{}


    input{};input[name]{};input[name=xm]{};input[name*=xm]{}

  • 第2题:

    要实现表单元素中的复选框或单选框默认为已选定,要在input标签中加()属性

    A.selected

    B.disabled

    C.type

    D.checked


    checked

  • 第3题:

    在表单中包含性别单选项,且默认状态为“男”被选中,下列正确的是()。

    A.<input type="radio" name="sex" checked="checked"> 男

    B.<input type="radio" name="sex" checked="enabled">男

    C.<input type="radio" name="sex" enabled="checked">男

    D.<input type="radio" name="sex" enabled="enabled">男


  • 第4题:

    1、要实现表单元素中的复选框或单选框默认为已选定,要在input标签中加()属性

    A.selected

    B.disabled

    C.type

    D.checked


    checked

  • 第5题:

    4、增加表单的文本域的HTML代码是:

    A.<input type=submit></input>

    B.<textarea name="textarea"></textarea>

    C.<input type=radio></input>

    D.<input type=checkbox></input>


    答案:B